{ "now": "2026-01-02T03:04:05.000Z", "owner": "111111111111111111111111", "cases": [ { "name": "case-0", "query": {}, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1", "query": { "sort": "_name" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$_anonymousId", "" ] } } }, { "$set": { "_sort": { "$toLower": "$_sort" } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2", "query": { "sort": "-_name" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$_anonymousId", "" ] } } }, { "$set": { "_sort": { "$toLower": "$_sort" } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-3", "query": { "sort": "_label" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$_label", "" ] } } }, { "$set": { "_sort": { "$toLower": "$_sort" } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-4", "query": { "sort": "-_label" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$_label", "" ] } } }, { "$set": { "_sort": { "$toLower": "$_sort" } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-5", "query": { "sort": "status" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$status", "" ] } } }, { "$set": { "_sort": { "$toLower": "$_sort" } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-6", "query": { "sort": "-status" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$status", "" ] } } }, { "$set": { "_sort": { "$toLower": "$_sort" } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-7", "query": { "sort": "anonymizeDate" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-8", "query": { "sort": "-anonymizeDate" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-9", "query": { "sort": "lastView" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-10", "query": { "sort": "-lastView" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-11", "query": { "sort": "pageView" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$pageView", 0 ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-12", "query": { "sort": "-pageView" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$pageView", 0 ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-13", "query": { "sort": "options.expirationDate" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-14", "query": { "sort": "-options.expirationDate" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-15", "query": { "sort": "invalid" }, "error": "invalid_sort" }, { "name": "case-16", "query": { "sort": [ "_name", "_label" ] }, "error": "invalid_sort" }, { "name": "case-17", "query": {}, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-18", "query": { "type": "repo" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_type": "repo", "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_type": "repo", "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-19", "query": { "type": "pr" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_type": "pr", "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_type": "pr", "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-20", "query": { "type": "gist" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_type": "gist", "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_type": "gist", "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-21", "query": { "type": "unknown" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-22", "query": { "type": [ "repo", "gist" ] }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-23", "query": { "attention": "true" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_attention": true, "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_attention": true, "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-24", "query": { "attention": "false" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-25", "query": { "attention": [ "true", "true" ] }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-26", "query": { "statuses": "" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-27", "query": { "statuses": "ready" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-28", "query": { "statuses": "ready,removed" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "removed" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "removed" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-29", "query": { "statuses": "invalid" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-30", "query": { "statuses": "ready,,error,ready" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "error", "ready" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "error", "ready" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-31", "query": { "statuses": [ "ready", "removed" ] }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "removed" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "removed" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-32", "query": { "statuses": [ "", "" ] }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-33", "query": { "q": "plain" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] }, "$or": [ { "_anonymousId": { "$regex": "plain", "$options": "i" } }, { "_label": { "$regex": "plain", "$options": "i" } }, { "_source": { "$regex": "plain", "$options": "i" } }, { "conference": { "$regex": "plain", "$options": "i" } } ] } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] }, "$or": [ { "_anonymousId": { "$regex": "plain", "$options": "i" } }, { "_label": { "$regex": "plain", "$options": "i" } }, { "_source": { "$regex": "plain", "$options": "i" } }, { "conference": { "$regex": "plain", "$options": "i" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-34", "query": { "q": " text " }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] }, "$or": [ { "_anonymousId": { "$regex": "text", "$options": "i" } }, { "_label": { "$regex": "text", "$options": "i" } }, { "_source": { "$regex": "text", "$options": "i" } }, { "conference": { "$regex": "text", "$options": "i" } } ] } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] }, "$or": [ { "_anonymousId": { "$regex": "text", "$options": "i" } }, { "_label": { "$regex": "text", "$options": "i" } }, { "_source": { "$regex": "text", "$options": "i" } }, { "conference": { "$regex": "text", "$options": "i" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-35", "query": { "q": "[a].*+?^${}()|\\" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] }, "$or": [ { "_anonymousId": { "$regex": "\\[a\\]\\.\\*\\+\\?\\^\\$\\{\\}\\(\\)\\|\\\\", "$options": "i" } }, { "_label": { "$regex": "\\[a\\]\\.\\*\\+\\?\\^\\$\\{\\}\\(\\)\\|\\\\", "$options": "i" } }, { "_source": { "$regex": "\\[a\\]\\.\\*\\+\\?\\^\\$\\{\\}\\(\\)\\|\\\\", "$options": "i" } }, { "conference": { "$regex": "\\[a\\]\\.\\*\\+\\?\\^\\$\\{\\}\\(\\)\\|\\\\", "$options": "i" } } ] } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] }, "$or": [ { "_anonymousId": { "$regex": "\\[a\\]\\.\\*\\+\\?\\^\\$\\{\\}\\(\\)\\|\\\\", "$options": "i" } }, { "_label": { "$regex": "\\[a\\]\\.\\*\\+\\?\\^\\$\\{\\}\\(\\)\\|\\\\", "$options": "i" } }, { "_source": { "$regex": "\\[a\\]\\.\\*\\+\\?\\^\\$\\{\\}\\(\\)\\|\\\\", "$options": "i" } }, { "conference": { "$regex": "\\[a\\]\\.\\*\\+\\?\\^\\$\\{\\}\\(\\)\\|\\\\", "$options": "i" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-36", "query": { "q": "text" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] }, "$or": [ { "_anonymousId": { "$regex": "text", "$options": "i" } }, { "_label": { "$regex": "text", "$options": "i" } }, { "_source": { "$regex": "text", "$options": "i" } }, { "conference": { "$regex": "text", "$options": "i" } } ] } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] }, "$or": [ { "_anonymousId": { "$regex": "text", "$options": "i" } }, { "_label": { "$regex": "text", "$options": "i" } }, { "_source": { "$regex": "text", "$options": "i" } }, { "conference": { "$regex": "text", "$options": "i" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-37", "query": { "q": "…text…" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] }, "$or": [ { "_anonymousId": { "$regex": "…text…", "$options": "i" } }, { "_label": { "$regex": "…text…", "$options": "i" } }, { "_source": { "$regex": "…text…", "$options": "i" } }, { "conference": { "$regex": "…text…", "$options": "i" } } ] } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] }, "$or": [ { "_anonymousId": { "$regex": "…text…", "$options": "i" } }, { "_label": { "$regex": "…text…", "$options": "i" } }, { "_source": { "$regex": "…text…", "$options": "i" } }, { "conference": { "$regex": "…text…", "$options": "i" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-38", "query": { "q": "éééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééétail" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] }, "$or": [ { "_anonymousId": { "$regex": "éééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééé", "$options": "i" } }, { "_label": { "$regex": "éééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééé", "$options": "i" } }, { "_source": { "$regex": "éééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééé", "$options": "i" } }, { "conference": { "$regex": "éééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééé", "$options": "i" } } ] } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] }, "$or": [ { "_anonymousId": { "$regex": "éééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééé", "$options": "i" } }, { "_label": { "$regex": "éééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééé", "$options": "i" } }, { "_source": { "$regex": "éééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééé", "$options": "i" } }, { "conference": { "$regex": "éééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééé", "$options": "i" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-39", "query": { "q": "😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀tail" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] }, "$or": [ { "_anonymousId": { "$regex": "😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀", "$options": "i" } }, { "_label": { "$regex": "😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀", "$options": "i" } }, { "_source": { "$regex": "😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀", "$options": "i" } }, { "conference": { "$regex": "😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀", "$options": "i" } } ] } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] }, "$or": [ { "_anonymousId": { "$regex": "😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀", "$options": "i" } }, { "_label": { "$regex": "😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀", "$options": "i" } }, { "_source": { "$regex": "😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀", "$options": "i" } }, { "conference": { "$regex": "😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀", "$options": "i" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-40", "query": { "q": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa😀" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] }, "$or": [ { "_anonymousId": { "$regex": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa�", "$options": "i" } }, { "_label": { "$regex": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa�", "$options": "i" } }, { "_source": { "$regex": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa�", "$options": "i" } }, { "conference": { "$regex": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa�", "$options": "i" } } ] } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] }, "$or": [ { "_anonymousId": { "$regex": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa�", "$options": "i" } }, { "_label": { "$regex": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa�", "$options": "i" } }, { "_source": { "$regex": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa�", "$options": "i" } }, { "conference": { "$regex": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa�", "$options": "i" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-41", "query": { "q": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa😀tail" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] }, "$or": [ { "_anonymousId": { "$regex": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa😀", "$options": "i" } }, { "_label": { "$regex": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa😀", "$options": "i" } }, { "_source": { "$regex": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa😀", "$options": "i" } }, { "conference": { "$regex": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa😀", "$options": "i" } } ] } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] }, "$or": [ { "_anonymousId": { "$regex": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa😀", "$options": "i" } }, { "_label": { "$regex": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa😀", "$options": "i" } }, { "_source": { "$regex": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa😀", "$options": "i" } }, { "conference": { "$regex": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa😀", "$options": "i" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-42", "query": { "q": [ "first", "second" ] }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] }, "$or": [ { "_anonymousId": { "$regex": "first,second", "$options": "i" } }, { "_label": { "$regex": "first,second", "$options": "i" } }, { "_source": { "$regex": "first,second", "$options": "i" } }, { "conference": { "$regex": "first,second", "$options": "i" } } ] } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] }, "$or": [ { "_anonymousId": { "$regex": "first,second", "$options": "i" } }, { "_label": { "$regex": "first,second", "$options": "i" } }, { "_source": { "$regex": "first,second", "$options": "i" } }, { "conference": { "$regex": "first,second", "$options": "i" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-43", "query": { "q": [ "", "" ] }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] }, "$or": [ { "_anonymousId": { "$regex": ",", "$options": "i" } }, { "_label": { "$regex": ",", "$options": "i" } }, { "_source": { "$regex": ",", "$options": "i" } }, { "conference": { "$regex": ",", "$options": "i" } } ] } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] }, "$or": [ { "_anonymousId": { "$regex": ",", "$options": "i" } }, { "_label": { "$regex": ",", "$options": "i" } }, { "_source": { "$regex": ",", "$options": "i" } }, { "conference": { "$regex": ",", "$options": "i" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-44", "query": { "q": [ " first", "second " ] }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] }, "$or": [ { "_anonymousId": { "$regex": "first,second", "$options": "i" } }, { "_label": { "$regex": "first,second", "$options": "i" } }, { "_source": { "$regex": "first,second", "$options": "i" } }, { "conference": { "$regex": "first,second", "$options": "i" } } ] } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] }, "$or": [ { "_anonymousId": { "$regex": "first,second", "$options": "i" } }, { "_label": { "$regex": "first,second", "$options": "i" } }, { "_source": { "$regex": "first,second", "$options": "i" } }, { "conference": { "$regex": "first,second", "$options": "i" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-45", "query": {}, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-46", "query": { "limit": [ "1", "2" ] }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-47", "query": { "limit": [ "", "" ] }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-48", "query": { "limit": [ "2", "" ] }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-49", "query": { "limit": "" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-50", "query": { "limit": " " }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-51", "query": { "limit": "0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-52", "query": { "limit": "-0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-53", "query": { "limit": "1" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 2 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-54", "query": { "limit": "-1" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 2 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-55", "query": { "limit": "2.9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 3 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-56", "query": { "limit": "-0.1" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 2 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-57", "query": { "limit": "0.1" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-58", "query": { "limit": "100" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 101 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-59", "query": { "limit": "101" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 101 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-60", "query": { "limit": "999999999999999999999999" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 101 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-61", "query": { "limit": "1e2" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 101 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-62", "query": { "limit": "1e-2" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-63", "query": { "limit": "1e999" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 101 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-64", "query": { "limit": "-1e999" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 2 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-65", "query": { "limit": "1e-9999" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-66", "query": { "limit": "0x2" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 3 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-67", "query": { "limit": "0Xff" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 101 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-68", "query": { "limit": "0x" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-69", "query": { "limit": "0xgg" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-70", "query": { "limit": "0xfffffffffffffffffffffffffffff" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 101 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-71", "query": { "limit": "0xffffz" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-72", "query": { "limit": "0b10" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 3 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-73", "query": { "limit": "0B101" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 6 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-74", "query": { "limit": "0b12" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-75", "query": { "limit": "0o10" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 9 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-76", "query": { "limit": "0O10" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 9 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-77", "query": { "limit": "0o8" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-78", "query": { "limit": "-0x2" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-79", "query": { "limit": "+0x2" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-80", "query": { "limit": "Infinity" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 101 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-81", "query": { "limit": "+Infinity" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 101 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-82", "query": { "limit": "-Infinity" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 2 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-83", "query": { "limit": "Inf" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-84", "query": { "limit": "NaN" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-85", "query": { "limit": "true" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-86", "query": { "limit": "null" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-87", "query": { "limit": "1_0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-88", "query": { "limit": "0x1p2" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-89", "query": { "limit": ".5" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-90", "query": { "limit": "+.5" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-91", "query": { "limit": "1." }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 2 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-92", "query": { "limit": "01" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 2 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-93", "query": { "limit": "1e" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-94", "query": { "limit": "2suffix" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-95", "query": { "limit": "2" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 3 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-96", "query": { "limit": "…2…" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-97", "query": { "limit": "\n2\t" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 3 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-98", "query": { "sort": "_name", "cursor": "eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOiJhYmMifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$_anonymousId", "" ] } } }, { "$set": { "_sort": { "$toLower": "$_sort" } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "abc" } }, { "_sort": "abc", "_type": { "$gt": "repo" } }, { "_sort": "abc", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-99", "query": { "sort": "_name", "cursor": "eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOjQyfQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$_anonymousId", "" ] } } }, { "$set": { "_sort": { "$toLower": "$_sort" } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": 42 } }, { "_sort": 42, "_type": { "$gt": "repo" } }, { "_sort": 42, "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-100", "query": { "sort": "_name", "cursor": "eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOm51bGx9" }, "error": "invalid_cursor" }, { "name": "case-101", "query": { "sort": "_name", "cursor": "eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOnRydWV9" }, "error": "invalid_cursor" }, { "name": "case-102", "query": { "sort": "_name", "cursor": "eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOmZhbHNlfQ" }, "error": "invalid_cursor" }, { "name": "case-103", "query": { "sort": "_name", "cursor": "eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOnt9fQ" }, "error": "invalid_cursor" }, { "name": "case-104", "query": { "sort": "_name", "cursor": "eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOnsiJG5lIjpudWxsfX0" }, "error": "invalid_cursor" }, { "name": "case-105", "query": { "sort": "_name", "cursor": "eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOltdfQ" }, "error": "invalid_cursor" }, { "name": "case-106", "query": { "sort": "_name", "cursor": "eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOlsiMjAyMC0wMS0wMiJdfQ" }, "error": "invalid_cursor" }, { "name": "case-107", "query": { "sort": "_name", "cursor": "eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOiIyMDIwLTAxLTAyVDAzOjA0OjA1WiJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$_anonymousId", "" ] } } }, { "$set": { "_sort": { "$toLower": "$_sort" } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2020-01-02T03:04:05Z" } }, { "_sort": "2020-01-02T03:04:05Z", "_type": { "$gt": "repo" } }, { "_sort": "2020-01-02T03:04:05Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-108", "query": { "sort": "_name", "cursor": "eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOiIwMDAxLTAxLTAxIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$_anonymousId", "" ] } } }, { "$set": { "_sort": { "$toLower": "$_sort" } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "0001-01-01" } }, { "_sort": "0001-01-01", "_type": { "$gt": "repo" } }, { "_sort": "0001-01-01", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-109", "query": { "sort": "_name", "cursor": "eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOjB9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$_anonymousId", "" ] } } }, { "$set": { "_sort": { "$toLower": "$_sort" } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": 0 } }, { "_sort": 0, "_type": { "$gt": "repo" } }, { "_sort": 0, "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-110", "query": { "sort": "_name", "cursor": "eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOjg2NDAwMDAwMDAwMDAwMDF9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$_anonymousId", "" ] } } }, { "$set": { "_sort": { "$toLower": "$_sort" } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": 8640000000000001 } }, { "_sort": 8640000000000001, "_type": { "$gt": "repo" } }, { "_sort": 8640000000000001, "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-111", "query": { "sort": "-pageView", "cursor": "eyJzb3J0IjoiLXBhZ2VWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiYWJjIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$pageView", 0 ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "abc" } }, { "_sort": "abc", "_type": { "$gt": "repo" } }, { "_sort": "abc", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-112", "query": { "sort": "-pageView", "cursor": "eyJzb3J0IjoiLXBhZ2VWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjo0Mn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$pageView", 0 ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": 42 } }, { "_sort": 42, "_type": { "$gt": "repo" } }, { "_sort": 42, "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-113", "query": { "sort": "-pageView", "cursor": "eyJzb3J0IjoiLXBhZ2VWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjpudWxsfQ" }, "error": "invalid_cursor" }, { "name": "case-114", "query": { "sort": "-pageView", "cursor": "eyJzb3J0IjoiLXBhZ2VWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjp0cnVlfQ" }, "error": "invalid_cursor" }, { "name": "case-115", "query": { "sort": "-pageView", "cursor": "eyJzb3J0IjoiLXBhZ2VWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjpmYWxzZX0" }, "error": "invalid_cursor" }, { "name": "case-116", "query": { "sort": "-pageView", "cursor": "eyJzb3J0IjoiLXBhZ2VWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjp7fX0" }, "error": "invalid_cursor" }, { "name": "case-117", "query": { "sort": "-pageView", "cursor": "eyJzb3J0IjoiLXBhZ2VWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjp7IiRuZSI6bnVsbH19" }, "error": "invalid_cursor" }, { "name": "case-118", "query": { "sort": "-pageView", "cursor": "eyJzb3J0IjoiLXBhZ2VWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjpbXX0" }, "error": "invalid_cursor" }, { "name": "case-119", "query": { "sort": "-pageView", "cursor": "eyJzb3J0IjoiLXBhZ2VWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjpbIjIwMjAtMDEtMDIiXX0" }, "error": "invalid_cursor" }, { "name": "case-120", "query": { "sort": "-pageView", "cursor": "eyJzb3J0IjoiLXBhZ2VWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMC0wMS0wMlQwMzowNDowNVoifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$pageView", 0 ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2020-01-02T03:04:05Z" } }, { "_sort": "2020-01-02T03:04:05Z", "_type": { "$gt": "repo" } }, { "_sort": "2020-01-02T03:04:05Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-121", "query": { "sort": "-pageView", "cursor": "eyJzb3J0IjoiLXBhZ2VWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$pageView", 0 ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "0001-01-01" } }, { "_sort": "0001-01-01", "_type": { "$gt": "repo" } }, { "_sort": "0001-01-01", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-122", "query": { "sort": "-pageView", "cursor": "eyJzb3J0IjoiLXBhZ2VWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjowfQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$pageView", 0 ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": 0 } }, { "_sort": 0, "_type": { "$gt": "repo" } }, { "_sort": 0, "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-123", "query": { "sort": "-pageView", "cursor": "eyJzb3J0IjoiLXBhZ2VWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjo4NjQwMDAwMDAwMDAwMDAxfQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$pageView", 0 ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": 8640000000000001 } }, { "_sort": 8640000000000001, "_type": { "$gt": "repo" } }, { "_sort": 8640000000000001, "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-124", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6ImFiYyJ9" }, "error": "invalid_cursor" }, { "name": "case-125", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6NDJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1970-01-01T00:00:00.042Z" } }, { "_sort": "1970-01-01T00:00:00.042Z", "_type": { "$gt": "repo" } }, { "_sort": "1970-01-01T00:00:00.042Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-126", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6bnVsbH0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1970-01-01T00:00:00.000Z" } }, { "_sort": "1970-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1970-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-127", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6dHJ1ZX0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1970-01-01T00:00:00.001Z" } }, { "_sort": "1970-01-01T00:00:00.001Z", "_type": { "$gt": "repo" } }, { "_sort": "1970-01-01T00:00:00.001Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-128", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6ZmFsc2V9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1970-01-01T00:00:00.000Z" } }, { "_sort": "1970-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1970-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-129", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6e319" }, "error": "invalid_cursor" }, { "name": "case-130", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6eyIkbmUiOm51bGx9fQ" }, "error": "invalid_cursor" }, { "name": "case-131", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6W119" }, "error": "invalid_cursor" }, { "name": "case-132", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6WyIyMDIwLTAxLTAyIl19" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2020-01-02T00:00:00.000Z" } }, { "_sort": "2020-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2020-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-133", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjAtMDEtMDJUMDM6MDQ6MDVaIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2020-01-02T03:04:05.000Z" } }, { "_sort": "2020-01-02T03:04:05.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2020-01-02T03:04:05.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-134", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "0001-01-01T00:00:00.000Z" } }, { "_sort": "0001-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "0001-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-135", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6MH0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1970-01-01T00:00:00.000Z" } }, { "_sort": "1970-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1970-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-136", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6ODY0MDAwMDAwMDAwMDAwMX0" }, "error": "invalid_cursor" }, { "name": "case-137", "query": { "sort": "_name", "cursor": "eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoiIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6ImFiYyJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$_anonymousId", "" ] } } }, { "$set": { "_sort": { "$toLower": "$_sort" } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "abc" } }, { "_sort": "abc", "_type": { "$gt": "" } }, { "_sort": "abc", "_type": "", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-138", "query": { "sort": "_name", "cursor": "eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoib3RoZXItZm9yZ2UiLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiYWJjIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$_anonymousId", "" ] } } }, { "$set": { "_sort": { "$toLower": "$_sort" } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "abc" } }, { "_sort": "abc", "_type": { "$gt": "other-forge" } }, { "_sort": "abc", "_type": "other-forge", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-139", "query": { "sort": "_name", "cursor": "eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjpmYWxzZSwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6ImFiYyJ9" }, "error": "invalid_cursor" }, { "name": "case-140", "query": { "sort": "_name", "cursor": "eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjp7fSwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6ImFiYyJ9" }, "error": "invalid_cursor" }, { "name": "case-141", "query": { "sort": "_name", "cursor": "eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjpbInJlcG8iXSwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6ImFiYyJ9" }, "error": "invalid_cursor" }, { "name": "case-142", "query": { "sort": "_name", "cursor": "eyJzb3J0Ijoid3JvbmciLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOiJhYmMifQ" }, "error": "invalid_cursor" }, { "name": "case-143", "query": { "sort": "_name", "cursor": "eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiYmFkIiwidmFsdWUiOiJhYmMifQ" }, "error": "invalid_cursor" }, { "name": "case-144", "query": { "sort": "_name", "cursor": "eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjpudWxsLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiYWJjIn0" }, "error": "invalid_cursor" }, { "name": "case-145", "query": { "sort": "_name", "cursor": "eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIn0" }, "error": "invalid_cursor" }, { "name": "case-146", "query": { "sort": "_name", "cursor": "eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOiJ0ZXh0In0=" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$_anonymousId", "" ] } } }, { "$set": { "_sort": { "$toLower": "$_sort" } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "text" } }, { "_sort": "text", "_type": { "$gt": "repo" } }, { "_sort": "text", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-147", "query": { "sort": "_name", "cursor": " \neyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOiJ0ZXh0In0\n" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$_anonymousId", "" ] } } }, { "$set": { "_sort": { "$toLower": "$_sort" } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "text" } }, { "_sort": "text", "_type": { "$gt": "repo" } }, { "_sort": "text", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-148", "query": { "sort": "_name", "cursor": "eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOiJ0ZXh0In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$_anonymousId", "" ] } } }, { "$set": { "_sort": { "$toLower": "$_sort" } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "text" } }, { "_sort": "text", "_type": { "$gt": "repo" } }, { "_sort": "text", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-149", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IiJ9" }, "error": "invalid_cursor" }, { "name": "case-150", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6ImludmFsaWQifQ" }, "error": "invalid_cursor" }, { "name": "case-151", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "0000-01-01T00:00:00.000Z" } }, { "_sort": "0000-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "0000-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-152", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "0001-01-01T00:00:00.000Z" } }, { "_sort": "0001-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "0001-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-153", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-154", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDIifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-01T00:00:00.000Z" } }, { "_sort": "2024-02-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-155", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjkifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T00:00:00.000Z" } }, { "_sort": "2023-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-156", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-157", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzEifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-02T00:00:00.000Z" } }, { "_sort": "2024-03-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-158", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzIifQ" }, "error": "invalid_cursor" }, { "name": "case-159", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDAtMDEifQ" }, "error": "invalid_cursor" }, { "name": "case-160", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMTMtMDEifQ" }, "error": "invalid_cursor" }, { "name": "case-161", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDAifQ" }, "error": "invalid_cursor" }, { "name": "case-162", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDEifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-163", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjRUMDA6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-164", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDJUMDA6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-01T00:00:00.000Z" } }, { "_sort": "2024-02-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-165", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDF0MDA6MDB6In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-166", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IiAyMDI0LTAxLTAxICJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-167", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDFUMDA6MDBaICJ9" }, "error": "invalid_cursor" }, { "name": "case-168", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDFUMDA6MDBaXHUwMDAwaWdub3JlZCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-169", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IiswMTAwMDAtMDEtMDEifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "+010000-01-01T00:00:00.000Z" } }, { "_sort": "+010000-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "+010000-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-170", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDEtMDEtMDEifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "-000001-01-01T00:00:00.000Z" } }, { "_sort": "-000001-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "-000001-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-171", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDEtMDEifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T00:00:00.000Z" } }, { "_sort": "2001-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-172", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IisyNzU3NjAtMDktMTMifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "+275760-09-13T00:00:00.000Z" } }, { "_sort": "+275760-09-13T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "+275760-09-13T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-173", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IisyNzU3NjAtMDktMTQifQ" }, "error": "invalid_cursor" }, { "name": "case-174", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0yNzE4MjEtMDQtMjAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "-271821-04-20T00:00:00.000Z" } }, { "_sort": "-271821-04-20T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "-271821-04-20T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-175", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0yNzE4MjEtMDQtMTkifQ" }, "error": "invalid_cursor" }, { "name": "case-176", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMDA6MDBaIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T00:00:00.000Z" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-177", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMDA6MDArMDI6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-28T21:30:00.000Z" } }, { "_sort": "2024-02-28T21:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-28T21:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-178", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMDA6MDAtMDMzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T03:30:00.000Z" } }, { "_sort": "2024-02-29T03:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T03:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-179", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMDA6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T00:00:00.000Z" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-180", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NTZaIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:34:56.000Z" } }, { "_sort": "2024-02-29T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-181", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NTYrMDI6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T10:04:56.000Z" } }, { "_sort": "2024-02-29T10:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T10:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-182", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NTYtMDMzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T16:04:56.000Z" } }, { "_sort": "2024-02-29T16:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T16:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-183", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NTYifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:34:56.000Z" } }, { "_sort": "2024-02-29T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-184", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NTYuMVoifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:34:56.100Z" } }, { "_sort": "2024-02-29T12:34:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-185", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NTYuMSswMjozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T10:04:56.100Z" } }, { "_sort": "2024-02-29T10:04:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T10:04:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-186", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NTYuMS0wMzMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T16:04:56.100Z" } }, { "_sort": "2024-02-29T16:04:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T16:04:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-187", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NTYuMSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:34:56.100Z" } }, { "_sort": "2024-02-29T12:34:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-188", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NTYuMTIzNDU2Nzg5WiJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:34:56.123Z" } }, { "_sort": "2024-02-29T12:34:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-189", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NTYuMTIzNDU2Nzg5KzAyOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T10:04:56.123Z" } }, { "_sort": "2024-02-29T10:04:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T10:04:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-190", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NTYuMTIzNDU2Nzg5LTAzMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T16:04:56.123Z" } }, { "_sort": "2024-02-29T16:04:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T16:04:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-191", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NTYuMTIzNDU2Nzg5In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:34:56.123Z" } }, { "_sort": "2024-02-29T12:34:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-192", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMjQ6MDBaIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-193", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMjQ6MDArMDI6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T21:30:00.000Z" } }, { "_sort": "2024-02-29T21:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T21:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-194", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMjQ6MDAtMDMzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T03:30:00.000Z" } }, { "_sort": "2024-03-01T03:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T03:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-195", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMjQ6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-196", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMjQ6MDA6MDAuMDAxWiJ9" }, "error": "invalid_cursor" }, { "name": "case-197", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMjQ6MDA6MDAuMDAxKzAyOjMwIn0" }, "error": "invalid_cursor" }, { "name": "case-198", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMjQ6MDA6MDAuMDAxLTAzMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-199", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMjQ6MDA6MDAuMDAxIn0" }, "error": "invalid_cursor" }, { "name": "case-200", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMjU6MDBaIn0" }, "error": "invalid_cursor" }, { "name": "case-201", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMjU6MDArMDI6MzAifQ" }, "error": "invalid_cursor" }, { "name": "case-202", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMjU6MDAtMDMzMCJ9" }, "error": "invalid_cursor" }, { "name": "case-203", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMjU6MDAifQ" }, "error": "invalid_cursor" }, { "name": "case-204", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6NjBaIn0" }, "error": "invalid_cursor" }, { "name": "case-205", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6NjArMDI6MzAifQ" }, "error": "invalid_cursor" }, { "name": "case-206", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6NjAtMDMzMCJ9" }, "error": "invalid_cursor" }, { "name": "case-207", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6NjAifQ" }, "error": "invalid_cursor" }, { "name": "case-208", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NjBaIn0" }, "error": "invalid_cursor" }, { "name": "case-209", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NjArMDI6MzAifQ" }, "error": "invalid_cursor" }, { "name": "case-210", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NjAtMDMzMCJ9" }, "error": "invalid_cursor" }, { "name": "case-211", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NjAifQ" }, "error": "invalid_cursor" }, { "name": "case-212", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMDA6MDBaIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T00:00:00.000Z" } }, { "_sort": "2023-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-213", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMDA6MDArMDI6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-02-28T21:30:00.000Z" } }, { "_sort": "2023-02-28T21:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-02-28T21:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-214", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMDA6MDAtMDMzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T03:30:00.000Z" } }, { "_sort": "2023-03-01T03:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T03:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-215", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMDA6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T00:00:00.000Z" } }, { "_sort": "2023-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-216", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NTZaIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T12:34:56.000Z" } }, { "_sort": "2023-03-01T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-217", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NTYrMDI6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T10:04:56.000Z" } }, { "_sort": "2023-03-01T10:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T10:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-218", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NTYtMDMzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T16:04:56.000Z" } }, { "_sort": "2023-03-01T16:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T16:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-219", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NTYifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T12:34:56.000Z" } }, { "_sort": "2023-03-01T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-220", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NTYuMVoifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T12:34:56.100Z" } }, { "_sort": "2023-03-01T12:34:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T12:34:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-221", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NTYuMSswMjozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T10:04:56.100Z" } }, { "_sort": "2023-03-01T10:04:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T10:04:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-222", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NTYuMS0wMzMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T16:04:56.100Z" } }, { "_sort": "2023-03-01T16:04:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T16:04:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-223", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NTYuMSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T12:34:56.100Z" } }, { "_sort": "2023-03-01T12:34:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T12:34:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-224", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NTYuMTIzNDU2Nzg5WiJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T12:34:56.123Z" } }, { "_sort": "2023-03-01T12:34:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T12:34:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-225", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NTYuMTIzNDU2Nzg5KzAyOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T10:04:56.123Z" } }, { "_sort": "2023-03-01T10:04:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T10:04:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-226", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NTYuMTIzNDU2Nzg5LTAzMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T16:04:56.123Z" } }, { "_sort": "2023-03-01T16:04:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T16:04:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-227", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NTYuMTIzNDU2Nzg5In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T12:34:56.123Z" } }, { "_sort": "2023-03-01T12:34:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T12:34:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-228", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMjQ6MDBaIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T00:00:00.000Z" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-229", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMjQ6MDArMDI6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T21:30:00.000Z" } }, { "_sort": "2023-03-01T21:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T21:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-230", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMjQ6MDAtMDMzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T03:30:00.000Z" } }, { "_sort": "2023-03-02T03:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T03:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-231", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMjQ6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T00:00:00.000Z" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-232", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMjQ6MDA6MDAuMDAxWiJ9" }, "error": "invalid_cursor" }, { "name": "case-233", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMjQ6MDA6MDAuMDAxKzAyOjMwIn0" }, "error": "invalid_cursor" }, { "name": "case-234", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMjQ6MDA6MDAuMDAxLTAzMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-235", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMjQ6MDA6MDAuMDAxIn0" }, "error": "invalid_cursor" }, { "name": "case-236", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMjU6MDBaIn0" }, "error": "invalid_cursor" }, { "name": "case-237", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMjU6MDArMDI6MzAifQ" }, "error": "invalid_cursor" }, { "name": "case-238", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMjU6MDAtMDMzMCJ9" }, "error": "invalid_cursor" }, { "name": "case-239", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMjU6MDAifQ" }, "error": "invalid_cursor" }, { "name": "case-240", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6NjBaIn0" }, "error": "invalid_cursor" }, { "name": "case-241", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6NjArMDI6MzAifQ" }, "error": "invalid_cursor" }, { "name": "case-242", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6NjAtMDMzMCJ9" }, "error": "invalid_cursor" }, { "name": "case-243", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6NjAifQ" }, "error": "invalid_cursor" }, { "name": "case-244", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NjBaIn0" }, "error": "invalid_cursor" }, { "name": "case-245", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NjArMDI6MzAifQ" }, "error": "invalid_cursor" }, { "name": "case-246", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NjAtMDMzMCJ9" }, "error": "invalid_cursor" }, { "name": "case-247", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NjAifQ" }, "error": "invalid_cursor" }, { "name": "case-248", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMDA6MDBaIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-249", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMDA6MDArMDI6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T21:30:00.000Z" } }, { "_sort": "2024-02-29T21:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T21:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-250", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMDA6MDAtMDMzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T03:30:00.000Z" } }, { "_sort": "2024-03-01T03:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T03:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-251", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMDA6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-252", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NTZaIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T12:34:56.000Z" } }, { "_sort": "2024-03-01T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-253", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NTYrMDI6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T10:04:56.000Z" } }, { "_sort": "2024-03-01T10:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T10:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-254", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NTYtMDMzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T16:04:56.000Z" } }, { "_sort": "2024-03-01T16:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T16:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-255", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NTYifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T12:34:56.000Z" } }, { "_sort": "2024-03-01T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-256", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NTYuMVoifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T12:34:56.100Z" } }, { "_sort": "2024-03-01T12:34:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T12:34:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-257", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NTYuMSswMjozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T10:04:56.100Z" } }, { "_sort": "2024-03-01T10:04:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T10:04:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-258", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NTYuMS0wMzMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T16:04:56.100Z" } }, { "_sort": "2024-03-01T16:04:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T16:04:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-259", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NTYuMSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T12:34:56.100Z" } }, { "_sort": "2024-03-01T12:34:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T12:34:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-260", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NTYuMTIzNDU2Nzg5WiJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T12:34:56.123Z" } }, { "_sort": "2024-03-01T12:34:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T12:34:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-261", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NTYuMTIzNDU2Nzg5KzAyOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T10:04:56.123Z" } }, { "_sort": "2024-03-01T10:04:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T10:04:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-262", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NTYuMTIzNDU2Nzg5LTAzMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T16:04:56.123Z" } }, { "_sort": "2024-03-01T16:04:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T16:04:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-263", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NTYuMTIzNDU2Nzg5In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T12:34:56.123Z" } }, { "_sort": "2024-03-01T12:34:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T12:34:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-264", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMjQ6MDBaIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-02T00:00:00.000Z" } }, { "_sort": "2024-03-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-265", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMjQ6MDArMDI6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T21:30:00.000Z" } }, { "_sort": "2024-03-01T21:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T21:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-266", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMjQ6MDAtMDMzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-02T03:30:00.000Z" } }, { "_sort": "2024-03-02T03:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-02T03:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-267", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMjQ6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-02T00:00:00.000Z" } }, { "_sort": "2024-03-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-268", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMjQ6MDA6MDAuMDAxWiJ9" }, "error": "invalid_cursor" }, { "name": "case-269", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMjQ6MDA6MDAuMDAxKzAyOjMwIn0" }, "error": "invalid_cursor" }, { "name": "case-270", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMjQ6MDA6MDAuMDAxLTAzMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-271", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMjQ6MDA6MDAuMDAxIn0" }, "error": "invalid_cursor" }, { "name": "case-272", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMjU6MDBaIn0" }, "error": "invalid_cursor" }, { "name": "case-273", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMjU6MDArMDI6MzAifQ" }, "error": "invalid_cursor" }, { "name": "case-274", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMjU6MDAtMDMzMCJ9" }, "error": "invalid_cursor" }, { "name": "case-275", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMjU6MDAifQ" }, "error": "invalid_cursor" }, { "name": "case-276", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6NjBaIn0" }, "error": "invalid_cursor" }, { "name": "case-277", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6NjArMDI6MzAifQ" }, "error": "invalid_cursor" }, { "name": "case-278", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6NjAtMDMzMCJ9" }, "error": "invalid_cursor" }, { "name": "case-279", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6NjAifQ" }, "error": "invalid_cursor" }, { "name": "case-280", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NjBaIn0" }, "error": "invalid_cursor" }, { "name": "case-281", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NjArMDI6MzAifQ" }, "error": "invalid_cursor" }, { "name": "case-282", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NjAtMDMzMCJ9" }, "error": "invalid_cursor" }, { "name": "case-283", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NjAifQ" }, "error": "invalid_cursor" }, { "name": "case-284", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2000-01-01T00:00:00.000Z" } }, { "_sort": "2000-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2000-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-285", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjEifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T00:00:00.000Z" } }, { "_sort": "2001-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-286", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjEyIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-12-01T00:00:00.000Z" } }, { "_sort": "2001-12-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-12-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-287", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjEzIn0" }, "error": "invalid_cursor" }, { "name": "case-288", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMxIn0" }, "error": "invalid_cursor" }, { "name": "case-289", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-01T00:00:00.000Z" } }, { "_sort": "2032-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-290", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjQ5In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-01-01T00:00:00.000Z" } }, { "_sort": "2049-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-291", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1950-01-01T00:00:00.000Z" } }, { "_sort": "1950-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1950-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-292", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ijk5In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-01-01T00:00:00.000Z" } }, { "_sort": "1999-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-293", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjEwMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "0100-01-01T00:00:00.000Z" } }, { "_sort": "0100-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "0100-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-294", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDAwMC0wMS0wMSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2000-01-01T00:00:00.000Z" } }, { "_sort": "2000-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2000-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-295", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T00:00:00.000Z" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-296", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDEtMDFUMDA6MDBaIn0" }, "error": "invalid_cursor" }, { "name": "case-297", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjEvMi8wMyJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T00:00:00.000Z" } }, { "_sort": "2003-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-298", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQvMDIvMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-299", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQuMDIuMjkifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T00:00:00.000Z" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-300", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T00:00:00.000Z" } }, { "_sort": "2001-01-05T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-301", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgSmFudWFyeSAyMDI0In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-05T00:00:00.000Z" } }, { "_sort": "2024-01-05T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-05T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-302", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IlR1ZSwgMDUgTWFyIDIwMjQgMTI6MzQ6NTYgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-05T12:34:56.000Z" } }, { "_sort": "2024-03-05T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-05T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-303", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ik1hcmNoIDUsIDIwMjQgMTI6MzAgUE0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-05T12:30:00.000Z" } }, { "_sort": "2024-03-05T12:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-05T12:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-304", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDEgMTI6MzQ6NTYifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T12:34:56.000Z" } }, { "_sort": "2024-01-01T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-305", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDEgMTI6MzQ6NTYuMTIzNCBHTVQrMDIwMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T10:34:56.123Z" } }, { "_sort": "2024-01-01T10:34:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T10:34:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-306", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDEgKGNvbW1lbnQpIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-307", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Iihjb21tZW50KSAyMDI0LTAxLTAxIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-308", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6ImdhcmJhZ2UgMjAyNC0wMS0wMSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-309", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6ImdhcmJhZ2UyMDI0LTAxLTAxIn0" }, "error": "invalid_cursor" }, { "name": "case-310", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDEgZ2FyYmFnZSJ9" }, "error": "invalid_cursor" }, { "name": "case-311", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDEgR01ULTgifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T08:00:00.000Z" } }, { "_sort": "2024-01-01T08:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T08:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-312", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDEgMTI6OjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T12:00:30.000Z" } }, { "_sort": "2024-01-01T12:00:30.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T12:00:30.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-313", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDEgMTI6MzA6NDAgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T17:30:40.000Z" } }, { "_sort": "2024-01-01T17:30:40.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T17:30:40.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-314", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ijk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OSJ9" }, "error": "invalid_cursor" }, { "name": "case-315", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T00:00:00.000Z" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-316", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T00:00:00.000Z" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-317", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-28T22:30:00.000Z" } }, { "_sort": "2024-02-28T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-28T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-318", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T05:00:00.000Z" } }, { "_sort": "2024-02-29T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-319", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgKzAxMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-320", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MzQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:34:00.000Z" } }, { "_sort": "2024-02-29T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-321", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MzQgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:34:00.000Z" } }, { "_sort": "2024-02-29T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-322", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MzQgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T11:04:00.000Z" } }, { "_sort": "2024-02-29T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-323", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MzQgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T17:34:00.000Z" } }, { "_sort": "2024-02-29T17:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T17:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-324", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MzQgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T11:04:00.000Z" } }, { "_sort": "2024-02-29T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-325", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MzQ6NTYuMDAwMTIzIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:34:56.000Z" } }, { "_sort": "2024-02-29T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-326", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MzQ6NTYuMDAwMTIzIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:34:56.000Z" } }, { "_sort": "2024-02-29T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-327", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MzQ6NTYuMDAwMTIzIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T11:04:56.000Z" } }, { "_sort": "2024-02-29T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-328", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MzQ6NTYuMDAwMTIzIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T17:34:56.000Z" } }, { "_sort": "2024-02-29T17:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T17:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-329", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MzQ6NTYuMDAwMTIzICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T11:04:56.000Z" } }, { "_sort": "2024-02-29T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-330", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:34:56.999Z" } }, { "_sort": "2024-02-29T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-331", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:34:56.999Z" } }, { "_sort": "2024-02-29T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-332", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T11:04:56.999Z" } }, { "_sort": "2024-02-29T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-333", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T17:34:56.999Z" } }, { "_sort": "2024-02-29T17:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T17:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-334", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5ICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T11:04:56.999Z" } }, { "_sort": "2024-02-29T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-335", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMjQ6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-336", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMjQ6MDAgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-337", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMjQ6MDAgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T22:30:00.000Z" } }, { "_sort": "2024-02-29T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-338", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMjQ6MDAgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T05:00:00.000Z" } }, { "_sort": "2024-03-01T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-339", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMjQ6MDAgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T22:30:00.000Z" } }, { "_sort": "2024-02-29T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-340", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MDAgQU0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T00:00:00.000Z" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-341", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MDAgQU0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T00:00:00.000Z" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-342", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MDAgQU0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-28T22:30:00.000Z" } }, { "_sort": "2024-02-28T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-28T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-343", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MDAgQU0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T05:00:00.000Z" } }, { "_sort": "2024-02-29T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-344", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MDAgQU0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-28T22:30:00.000Z" } }, { "_sort": "2024-02-28T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-28T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-345", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MDAgUE0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:00:00.000Z" } }, { "_sort": "2024-02-29T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-346", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MDAgUE0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:00:00.000Z" } }, { "_sort": "2024-02-29T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-347", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MDAgUE0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T10:30:00.000Z" } }, { "_sort": "2024-02-29T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-348", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MDAgUE0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T17:00:00.000Z" } }, { "_sort": "2024-02-29T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-349", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MDAgUE0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T10:30:00.000Z" } }, { "_sort": "2024-02-29T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-350", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMDowMCBQTSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:00:00.000Z" } }, { "_sort": "2024-02-29T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-351", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMDowMCBQTSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:00:00.000Z" } }, { "_sort": "2024-02-29T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-352", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMDowMCBQTSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T10:30:00.000Z" } }, { "_sort": "2024-02-29T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-353", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMDowMCBQTSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T17:00:00.000Z" } }, { "_sort": "2024-02-29T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-354", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMDowMCBQTSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T10:30:00.000Z" } }, { "_sort": "2024-02-29T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-355", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTM6MDAgUE0ifQ" }, "error": "invalid_cursor" }, { "name": "case-356", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTM6MDAgUE0gR01UIn0" }, "error": "invalid_cursor" }, { "name": "case-357", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTM6MDAgUE0gVVRDKzAxOjMwIn0" }, "error": "invalid_cursor" }, { "name": "case-358", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTM6MDAgUE0gRVNUIn0" }, "error": "invalid_cursor" }, { "name": "case-359", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTM6MDAgUE0gKzAxMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-360", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T00:00:00.000Z" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-361", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T00:00:00.000Z" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-362", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T22:30:00.000Z" } }, { "_sort": "2023-03-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-363", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T05:00:00.000Z" } }, { "_sort": "2023-03-02T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-364", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgKzAxMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-365", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MzQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T12:34:00.000Z" } }, { "_sort": "2023-03-02T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-366", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MzQgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T12:34:00.000Z" } }, { "_sort": "2023-03-02T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-367", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MzQgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T11:04:00.000Z" } }, { "_sort": "2023-03-02T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-368", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MzQgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T17:34:00.000Z" } }, { "_sort": "2023-03-02T17:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T17:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-369", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MzQgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T11:04:00.000Z" } }, { "_sort": "2023-03-02T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-370", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MzQ6NTYuMDAwMTIzIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T12:34:56.000Z" } }, { "_sort": "2023-03-02T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-371", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MzQ6NTYuMDAwMTIzIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T12:34:56.000Z" } }, { "_sort": "2023-03-02T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-372", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MzQ6NTYuMDAwMTIzIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T11:04:56.000Z" } }, { "_sort": "2023-03-02T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-373", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MzQ6NTYuMDAwMTIzIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T17:34:56.000Z" } }, { "_sort": "2023-03-02T17:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T17:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-374", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MzQ6NTYuMDAwMTIzICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T11:04:56.000Z" } }, { "_sort": "2023-03-02T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-375", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T12:34:56.999Z" } }, { "_sort": "2023-03-02T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-376", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T12:34:56.999Z" } }, { "_sort": "2023-03-02T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-377", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T11:04:56.999Z" } }, { "_sort": "2023-03-02T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-378", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T17:34:56.999Z" } }, { "_sort": "2023-03-02T17:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T17:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-379", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5ICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T11:04:56.999Z" } }, { "_sort": "2023-03-02T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-380", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMjQ6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-03T00:00:00.000Z" } }, { "_sort": "2023-03-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-381", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMjQ6MDAgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-03T00:00:00.000Z" } }, { "_sort": "2023-03-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-382", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMjQ6MDAgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T22:30:00.000Z" } }, { "_sort": "2023-03-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-383", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMjQ6MDAgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-03T05:00:00.000Z" } }, { "_sort": "2023-03-03T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-03T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-384", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMjQ6MDAgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T22:30:00.000Z" } }, { "_sort": "2023-03-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-385", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MDAgQU0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T00:00:00.000Z" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-386", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MDAgQU0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T00:00:00.000Z" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-387", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MDAgQU0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T22:30:00.000Z" } }, { "_sort": "2023-03-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-388", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MDAgQU0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T05:00:00.000Z" } }, { "_sort": "2023-03-02T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-389", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MDAgQU0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T22:30:00.000Z" } }, { "_sort": "2023-03-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-390", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MDAgUE0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T12:00:00.000Z" } }, { "_sort": "2023-03-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-391", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MDAgUE0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T12:00:00.000Z" } }, { "_sort": "2023-03-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-392", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MDAgUE0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T10:30:00.000Z" } }, { "_sort": "2023-03-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-393", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MDAgUE0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T17:00:00.000Z" } }, { "_sort": "2023-03-02T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-394", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MDAgUE0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T10:30:00.000Z" } }, { "_sort": "2023-03-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-395", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMDowMCBQTSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T12:00:00.000Z" } }, { "_sort": "2023-03-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-396", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMDowMCBQTSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T12:00:00.000Z" } }, { "_sort": "2023-03-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-397", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMDowMCBQTSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T10:30:00.000Z" } }, { "_sort": "2023-03-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-398", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMDowMCBQTSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T17:00:00.000Z" } }, { "_sort": "2023-03-02T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-399", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMDowMCBQTSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T10:30:00.000Z" } }, { "_sort": "2023-03-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-400", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTM6MDAgUE0ifQ" }, "error": "invalid_cursor" }, { "name": "case-401", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTM6MDAgUE0gR01UIn0" }, "error": "invalid_cursor" }, { "name": "case-402", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTM6MDAgUE0gVVRDKzAxOjMwIn0" }, "error": "invalid_cursor" }, { "name": "case-403", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTM6MDAgUE0gRVNUIn0" }, "error": "invalid_cursor" }, { "name": "case-404", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTM6MDAgUE0gKzAxMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-405", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "0001-01-01T00:00:00.000Z" } }, { "_sort": "0001-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "0001-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-406", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T00:00:00.000Z" } }, { "_sort": "2001-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-407", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2000-12-31T22:30:00.000Z" } }, { "_sort": "2000-12-31T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2000-12-31T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-408", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T05:00:00.000Z" } }, { "_sort": "2001-01-01T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-409", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgKzAxMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-410", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MzQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T12:34:00.000Z" } }, { "_sort": "2001-01-01T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-411", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MzQgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T12:34:00.000Z" } }, { "_sort": "2001-01-01T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-412", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MzQgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T11:04:00.000Z" } }, { "_sort": "2001-01-01T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-413", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MzQgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T17:34:00.000Z" } }, { "_sort": "2001-01-01T17:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T17:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-414", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MzQgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T11:04:00.000Z" } }, { "_sort": "2001-01-01T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-415", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MzQ6NTYuMDAwMTIzIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T12:34:56.000Z" } }, { "_sort": "2001-01-01T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-416", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MzQ6NTYuMDAwMTIzIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T12:34:56.000Z" } }, { "_sort": "2001-01-01T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-417", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MzQ6NTYuMDAwMTIzIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T11:04:56.000Z" } }, { "_sort": "2001-01-01T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-418", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MzQ6NTYuMDAwMTIzIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T17:34:56.000Z" } }, { "_sort": "2001-01-01T17:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T17:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-419", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MzQ6NTYuMDAwMTIzICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T11:04:56.000Z" } }, { "_sort": "2001-01-01T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-420", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T12:34:56.999Z" } }, { "_sort": "2001-01-01T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-421", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T12:34:56.999Z" } }, { "_sort": "2001-01-01T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-422", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T11:04:56.999Z" } }, { "_sort": "2001-01-01T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-423", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T17:34:56.999Z" } }, { "_sort": "2001-01-01T17:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T17:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-424", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5ICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T11:04:56.999Z" } }, { "_sort": "2001-01-01T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-425", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMjQ6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-02T00:00:00.000Z" } }, { "_sort": "2001-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-426", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMjQ6MDAgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-02T00:00:00.000Z" } }, { "_sort": "2001-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-427", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMjQ6MDAgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T22:30:00.000Z" } }, { "_sort": "2001-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-428", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMjQ6MDAgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-02T05:00:00.000Z" } }, { "_sort": "2001-01-02T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-02T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-429", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMjQ6MDAgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T22:30:00.000Z" } }, { "_sort": "2001-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-430", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MDAgQU0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T00:00:00.000Z" } }, { "_sort": "2001-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-431", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MDAgQU0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T00:00:00.000Z" } }, { "_sort": "2001-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-432", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MDAgQU0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2000-12-31T22:30:00.000Z" } }, { "_sort": "2000-12-31T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2000-12-31T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-433", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MDAgQU0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T05:00:00.000Z" } }, { "_sort": "2001-01-01T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-434", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MDAgQU0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2000-12-31T22:30:00.000Z" } }, { "_sort": "2000-12-31T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2000-12-31T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-435", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MDAgUE0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T12:00:00.000Z" } }, { "_sort": "2001-01-01T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-436", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MDAgUE0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T12:00:00.000Z" } }, { "_sort": "2001-01-01T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-437", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MDAgUE0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T10:30:00.000Z" } }, { "_sort": "2001-01-01T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-438", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MDAgUE0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T17:00:00.000Z" } }, { "_sort": "2001-01-01T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-439", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MDAgUE0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T10:30:00.000Z" } }, { "_sort": "2001-01-01T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-440", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMDowMCBQTSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T12:00:00.000Z" } }, { "_sort": "2001-01-01T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-441", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMDowMCBQTSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T12:00:00.000Z" } }, { "_sort": "2001-01-01T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-442", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMDowMCBQTSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T10:30:00.000Z" } }, { "_sort": "2001-01-01T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-443", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMDowMCBQTSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T17:00:00.000Z" } }, { "_sort": "2001-01-01T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-444", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMDowMCBQTSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T10:30:00.000Z" } }, { "_sort": "2001-01-01T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-445", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTM6MDAgUE0ifQ" }, "error": "invalid_cursor" }, { "name": "case-446", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTM6MDAgUE0gR01UIn0" }, "error": "invalid_cursor" }, { "name": "case-447", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTM6MDAgUE0gVVRDKzAxOjMwIn0" }, "error": "invalid_cursor" }, { "name": "case-448", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTM6MDAgUE0gRVNUIn0" }, "error": "invalid_cursor" }, { "name": "case-449", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTM6MDAgUE0gKzAxMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-450", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T00:00:00.000Z" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-451", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T00:00:00.000Z" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-452", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-02T22:30:00.000Z" } }, { "_sort": "2001-02-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-453", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T05:00:00.000Z" } }, { "_sort": "2001-02-03T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-454", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgKzAxMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-455", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MzQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T12:34:00.000Z" } }, { "_sort": "2001-02-03T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-456", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MzQgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T12:34:00.000Z" } }, { "_sort": "2001-02-03T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-457", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MzQgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T11:04:00.000Z" } }, { "_sort": "2001-02-03T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-458", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MzQgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T17:34:00.000Z" } }, { "_sort": "2001-02-03T17:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T17:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-459", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MzQgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T11:04:00.000Z" } }, { "_sort": "2001-02-03T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-460", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MzQ6NTYuMDAwMTIzIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T12:34:56.000Z" } }, { "_sort": "2001-02-03T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-461", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MzQ6NTYuMDAwMTIzIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T12:34:56.000Z" } }, { "_sort": "2001-02-03T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-462", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MzQ6NTYuMDAwMTIzIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T11:04:56.000Z" } }, { "_sort": "2001-02-03T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-463", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MzQ6NTYuMDAwMTIzIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T17:34:56.000Z" } }, { "_sort": "2001-02-03T17:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T17:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-464", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MzQ6NTYuMDAwMTIzICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T11:04:56.000Z" } }, { "_sort": "2001-02-03T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-465", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T12:34:56.999Z" } }, { "_sort": "2001-02-03T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-466", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T12:34:56.999Z" } }, { "_sort": "2001-02-03T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-467", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T11:04:56.999Z" } }, { "_sort": "2001-02-03T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-468", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T17:34:56.999Z" } }, { "_sort": "2001-02-03T17:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T17:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-469", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5ICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T11:04:56.999Z" } }, { "_sort": "2001-02-03T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-470", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMjQ6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-04T00:00:00.000Z" } }, { "_sort": "2001-02-04T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-04T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-471", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMjQ6MDAgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-04T00:00:00.000Z" } }, { "_sort": "2001-02-04T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-04T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-472", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMjQ6MDAgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T22:30:00.000Z" } }, { "_sort": "2001-02-03T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-473", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMjQ6MDAgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-04T05:00:00.000Z" } }, { "_sort": "2001-02-04T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-04T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-474", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMjQ6MDAgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T22:30:00.000Z" } }, { "_sort": "2001-02-03T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-475", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MDAgQU0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T00:00:00.000Z" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-476", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MDAgQU0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T00:00:00.000Z" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-477", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MDAgQU0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-02T22:30:00.000Z" } }, { "_sort": "2001-02-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-478", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MDAgQU0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T05:00:00.000Z" } }, { "_sort": "2001-02-03T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-479", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MDAgQU0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-02T22:30:00.000Z" } }, { "_sort": "2001-02-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-480", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MDAgUE0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T12:00:00.000Z" } }, { "_sort": "2001-02-03T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-481", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MDAgUE0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T12:00:00.000Z" } }, { "_sort": "2001-02-03T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-482", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MDAgUE0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T10:30:00.000Z" } }, { "_sort": "2001-02-03T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-483", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MDAgUE0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T17:00:00.000Z" } }, { "_sort": "2001-02-03T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-484", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MDAgUE0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T10:30:00.000Z" } }, { "_sort": "2001-02-03T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-485", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMDowMCBQTSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T12:00:00.000Z" } }, { "_sort": "2001-02-03T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-486", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMDowMCBQTSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T12:00:00.000Z" } }, { "_sort": "2001-02-03T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-487", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMDowMCBQTSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T10:30:00.000Z" } }, { "_sort": "2001-02-03T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-488", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMDowMCBQTSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T17:00:00.000Z" } }, { "_sort": "2001-02-03T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-489", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMDowMCBQTSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T10:30:00.000Z" } }, { "_sort": "2001-02-03T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-490", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTM6MDAgUE0ifQ" }, "error": "invalid_cursor" }, { "name": "case-491", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTM6MDAgUE0gR01UIn0" }, "error": "invalid_cursor" }, { "name": "case-492", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTM6MDAgUE0gVVRDKzAxOjMwIn0" }, "error": "invalid_cursor" }, { "name": "case-493", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTM6MDAgUE0gRVNUIn0" }, "error": "invalid_cursor" }, { "name": "case-494", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTM6MDAgUE0gKzAxMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-495", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T00:00:00.000Z" } }, { "_sort": "2003-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-496", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T00:00:00.000Z" } }, { "_sort": "2003-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-497", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-01T22:30:00.000Z" } }, { "_sort": "2003-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-498", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T05:00:00.000Z" } }, { "_sort": "2003-01-02T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-499", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzICswMTMwIn0" }, "error": "invalid_cursor" }, { "name": "case-500", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjM0In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T12:34:00.000Z" } }, { "_sort": "2003-01-02T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-501", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjM0IEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T12:34:00.000Z" } }, { "_sort": "2003-01-02T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-502", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjM0IFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T11:04:00.000Z" } }, { "_sort": "2003-01-02T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-503", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjM0IEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T17:34:00.000Z" } }, { "_sort": "2003-01-02T17:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T17:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-504", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjM0ICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T11:04:00.000Z" } }, { "_sort": "2003-01-02T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-505", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjM0OjU2LjAwMDEyMyJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T12:34:56.000Z" } }, { "_sort": "2003-01-02T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-506", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjM0OjU2LjAwMDEyMyBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T12:34:56.000Z" } }, { "_sort": "2003-01-02T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-507", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjM0OjU2LjAwMDEyMyBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T11:04:56.000Z" } }, { "_sort": "2003-01-02T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-508", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjM0OjU2LjAwMDEyMyBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T17:34:56.000Z" } }, { "_sort": "2003-01-02T17:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T17:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-509", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjM0OjU2LjAwMDEyMyArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T11:04:56.000Z" } }, { "_sort": "2003-01-02T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-510", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T12:34:56.999Z" } }, { "_sort": "2003-01-02T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-511", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T12:34:56.999Z" } }, { "_sort": "2003-01-02T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-512", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T11:04:56.999Z" } }, { "_sort": "2003-01-02T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-513", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T17:34:56.999Z" } }, { "_sort": "2003-01-02T17:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T17:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-514", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T11:04:56.999Z" } }, { "_sort": "2003-01-02T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-515", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDI0OjAwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-03T00:00:00.000Z" } }, { "_sort": "2003-01-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-516", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDI0OjAwIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-03T00:00:00.000Z" } }, { "_sort": "2003-01-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-517", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDI0OjAwIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T22:30:00.000Z" } }, { "_sort": "2003-01-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-518", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDI0OjAwIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-03T05:00:00.000Z" } }, { "_sort": "2003-01-03T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-03T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-519", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDI0OjAwICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T22:30:00.000Z" } }, { "_sort": "2003-01-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-520", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjAwIEFNIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T00:00:00.000Z" } }, { "_sort": "2003-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-521", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjAwIEFNIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T00:00:00.000Z" } }, { "_sort": "2003-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-522", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjAwIEFNIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-01T22:30:00.000Z" } }, { "_sort": "2003-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-523", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjAwIEFNIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T05:00:00.000Z" } }, { "_sort": "2003-01-02T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-524", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjAwIEFNICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-01T22:30:00.000Z" } }, { "_sort": "2003-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-525", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjAwIFBNIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T12:00:00.000Z" } }, { "_sort": "2003-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-526", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjAwIFBNIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T12:00:00.000Z" } }, { "_sort": "2003-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-527", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjAwIFBNIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T10:30:00.000Z" } }, { "_sort": "2003-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-528", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjAwIFBNIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T17:00:00.000Z" } }, { "_sort": "2003-01-02T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-529", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjAwIFBNICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T10:30:00.000Z" } }, { "_sort": "2003-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-530", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDA6MDAgUE0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T12:00:00.000Z" } }, { "_sort": "2003-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-531", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDA6MDAgUE0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T12:00:00.000Z" } }, { "_sort": "2003-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-532", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDA6MDAgUE0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T10:30:00.000Z" } }, { "_sort": "2003-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-533", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDA6MDAgUE0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T17:00:00.000Z" } }, { "_sort": "2003-01-02T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-534", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDA6MDAgUE0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T10:30:00.000Z" } }, { "_sort": "2003-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-535", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEzOjAwIFBNIn0" }, "error": "invalid_cursor" }, { "name": "case-536", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEzOjAwIFBNIEdNVCJ9" }, "error": "invalid_cursor" }, { "name": "case-537", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEzOjAwIFBNIFVUQyswMTozMCJ9" }, "error": "invalid_cursor" }, { "name": "case-538", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEzOjAwIFBNIEVTVCJ9" }, "error": "invalid_cursor" }, { "name": "case-539", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEzOjAwIFBNICswMTMwIn0" }, "error": "invalid_cursor" }, { "name": "case-540", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T00:00:00.000Z" } }, { "_sort": "2032-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-541", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T00:00:00.000Z" } }, { "_sort": "2032-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-542", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-01T22:30:00.000Z" } }, { "_sort": "2032-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-543", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T05:00:00.000Z" } }, { "_sort": "2032-01-02T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-544", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyICswMTMwIn0" }, "error": "invalid_cursor" }, { "name": "case-545", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjM0In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T12:34:00.000Z" } }, { "_sort": "2032-01-02T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-546", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjM0IEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T12:34:00.000Z" } }, { "_sort": "2032-01-02T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-547", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjM0IFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T11:04:00.000Z" } }, { "_sort": "2032-01-02T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-548", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjM0IEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T17:34:00.000Z" } }, { "_sort": "2032-01-02T17:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T17:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-549", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjM0ICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T11:04:00.000Z" } }, { "_sort": "2032-01-02T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-550", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjM0OjU2LjAwMDEyMyJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T12:34:56.000Z" } }, { "_sort": "2032-01-02T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-551", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjM0OjU2LjAwMDEyMyBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T12:34:56.000Z" } }, { "_sort": "2032-01-02T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-552", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjM0OjU2LjAwMDEyMyBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T11:04:56.000Z" } }, { "_sort": "2032-01-02T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-553", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjM0OjU2LjAwMDEyMyBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T17:34:56.000Z" } }, { "_sort": "2032-01-02T17:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T17:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-554", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjM0OjU2LjAwMDEyMyArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T11:04:56.000Z" } }, { "_sort": "2032-01-02T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-555", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T12:34:56.999Z" } }, { "_sort": "2032-01-02T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-556", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T12:34:56.999Z" } }, { "_sort": "2032-01-02T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-557", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T11:04:56.999Z" } }, { "_sort": "2032-01-02T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-558", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T17:34:56.999Z" } }, { "_sort": "2032-01-02T17:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T17:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-559", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T11:04:56.999Z" } }, { "_sort": "2032-01-02T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-560", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDI0OjAwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-03T00:00:00.000Z" } }, { "_sort": "2032-01-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-561", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDI0OjAwIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-03T00:00:00.000Z" } }, { "_sort": "2032-01-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-562", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDI0OjAwIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T22:30:00.000Z" } }, { "_sort": "2032-01-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-563", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDI0OjAwIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-03T05:00:00.000Z" } }, { "_sort": "2032-01-03T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-03T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-564", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDI0OjAwICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T22:30:00.000Z" } }, { "_sort": "2032-01-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-565", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjAwIEFNIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T00:00:00.000Z" } }, { "_sort": "2032-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-566", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjAwIEFNIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T00:00:00.000Z" } }, { "_sort": "2032-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-567", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjAwIEFNIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-01T22:30:00.000Z" } }, { "_sort": "2032-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-568", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjAwIEFNIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T05:00:00.000Z" } }, { "_sort": "2032-01-02T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-569", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjAwIEFNICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-01T22:30:00.000Z" } }, { "_sort": "2032-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-570", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjAwIFBNIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T12:00:00.000Z" } }, { "_sort": "2032-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-571", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjAwIFBNIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T12:00:00.000Z" } }, { "_sort": "2032-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-572", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjAwIFBNIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T10:30:00.000Z" } }, { "_sort": "2032-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-573", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjAwIFBNIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T17:00:00.000Z" } }, { "_sort": "2032-01-02T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-574", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjAwIFBNICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T10:30:00.000Z" } }, { "_sort": "2032-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-575", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDA6MDAgUE0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T12:00:00.000Z" } }, { "_sort": "2032-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-576", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDA6MDAgUE0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T12:00:00.000Z" } }, { "_sort": "2032-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-577", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDA6MDAgUE0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T10:30:00.000Z" } }, { "_sort": "2032-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-578", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDA6MDAgUE0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T17:00:00.000Z" } }, { "_sort": "2032-01-02T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-579", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDA6MDAgUE0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T10:30:00.000Z" } }, { "_sort": "2032-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-580", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEzOjAwIFBNIn0" }, "error": "invalid_cursor" }, { "name": "case-581", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEzOjAwIFBNIEdNVCJ9" }, "error": "invalid_cursor" }, { "name": "case-582", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEzOjAwIFBNIFVUQyswMTozMCJ9" }, "error": "invalid_cursor" }, { "name": "case-583", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEzOjAwIFBNIEVTVCJ9" }, "error": "invalid_cursor" }, { "name": "case-584", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEzOjAwIFBNICswMTMwIn0" }, "error": "invalid_cursor" }, { "name": "case-585", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T00:00:00.000Z" } }, { "_sort": "2001-01-05T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-586", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T00:00:00.000Z" } }, { "_sort": "2001-01-05T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-587", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-04T22:30:00.000Z" } }, { "_sort": "2001-01-04T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-04T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-588", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T05:00:00.000Z" } }, { "_sort": "2001-01-05T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-589", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1ICswMTMwIn0" }, "error": "invalid_cursor" }, { "name": "case-590", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjM0In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T12:34:00.000Z" } }, { "_sort": "2001-01-05T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-591", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjM0IEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T12:34:00.000Z" } }, { "_sort": "2001-01-05T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-592", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjM0IFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T11:04:00.000Z" } }, { "_sort": "2001-01-05T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-593", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjM0IEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T17:34:00.000Z" } }, { "_sort": "2001-01-05T17:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T17:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-594", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjM0ICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T11:04:00.000Z" } }, { "_sort": "2001-01-05T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-595", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjM0OjU2LjAwMDEyMyJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T12:34:56.000Z" } }, { "_sort": "2001-01-05T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-596", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjM0OjU2LjAwMDEyMyBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T12:34:56.000Z" } }, { "_sort": "2001-01-05T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-597", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjM0OjU2LjAwMDEyMyBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T11:04:56.000Z" } }, { "_sort": "2001-01-05T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-598", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjM0OjU2LjAwMDEyMyBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T17:34:56.000Z" } }, { "_sort": "2001-01-05T17:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T17:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-599", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjM0OjU2LjAwMDEyMyArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T11:04:56.000Z" } }, { "_sort": "2001-01-05T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-600", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T12:34:56.999Z" } }, { "_sort": "2001-01-05T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-601", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T12:34:56.999Z" } }, { "_sort": "2001-01-05T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-602", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T11:04:56.999Z" } }, { "_sort": "2001-01-05T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-603", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T17:34:56.999Z" } }, { "_sort": "2001-01-05T17:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T17:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-604", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T11:04:56.999Z" } }, { "_sort": "2001-01-05T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-605", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDI0OjAwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-06T00:00:00.000Z" } }, { "_sort": "2001-01-06T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-06T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-606", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDI0OjAwIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-06T00:00:00.000Z" } }, { "_sort": "2001-01-06T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-06T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-607", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDI0OjAwIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T22:30:00.000Z" } }, { "_sort": "2001-01-05T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-608", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDI0OjAwIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-06T05:00:00.000Z" } }, { "_sort": "2001-01-06T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-06T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-609", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDI0OjAwICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T22:30:00.000Z" } }, { "_sort": "2001-01-05T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-610", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjAwIEFNIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T00:00:00.000Z" } }, { "_sort": "2001-01-05T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-611", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjAwIEFNIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T00:00:00.000Z" } }, { "_sort": "2001-01-05T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-612", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjAwIEFNIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-04T22:30:00.000Z" } }, { "_sort": "2001-01-04T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-04T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-613", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjAwIEFNIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T05:00:00.000Z" } }, { "_sort": "2001-01-05T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-614", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjAwIEFNICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-04T22:30:00.000Z" } }, { "_sort": "2001-01-04T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-04T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-615", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjAwIFBNIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T12:00:00.000Z" } }, { "_sort": "2001-01-05T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-616", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjAwIFBNIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T12:00:00.000Z" } }, { "_sort": "2001-01-05T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-617", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjAwIFBNIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T10:30:00.000Z" } }, { "_sort": "2001-01-05T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-618", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjAwIFBNIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T17:00:00.000Z" } }, { "_sort": "2001-01-05T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-619", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjAwIFBNICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T10:30:00.000Z" } }, { "_sort": "2001-01-05T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-620", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDA6MDAgUE0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T12:00:00.000Z" } }, { "_sort": "2001-01-05T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-621", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDA6MDAgUE0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T12:00:00.000Z" } }, { "_sort": "2001-01-05T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-622", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDA6MDAgUE0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T10:30:00.000Z" } }, { "_sort": "2001-01-05T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-623", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDA6MDAgUE0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T17:00:00.000Z" } }, { "_sort": "2001-01-05T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-624", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDA6MDAgUE0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T10:30:00.000Z" } }, { "_sort": "2001-01-05T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-625", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEzOjAwIFBNIn0" }, "error": "invalid_cursor" }, { "name": "case-626", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEzOjAwIFBNIEdNVCJ9" }, "error": "invalid_cursor" }, { "name": "case-627", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEzOjAwIFBNIFVUQyswMTozMCJ9" }, "error": "invalid_cursor" }, { "name": "case-628", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEzOjAwIFBNIEVTVCJ9" }, "error": "invalid_cursor" }, { "name": "case-629", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEzOjAwIFBNICswMTMwIn0" }, "error": "invalid_cursor" }, { "name": "case-630", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T00:00:00.000Z" } }, { "_sort": "2049-03-05T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-631", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T00:00:00.000Z" } }, { "_sort": "2049-03-05T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-632", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-04T22:30:00.000Z" } }, { "_sort": "2049-03-04T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-04T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-633", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T05:00:00.000Z" } }, { "_sort": "2049-03-05T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-634", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgKzAxMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-635", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MzQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T12:34:00.000Z" } }, { "_sort": "2049-03-05T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-636", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MzQgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T12:34:00.000Z" } }, { "_sort": "2049-03-05T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-637", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MzQgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T11:04:00.000Z" } }, { "_sort": "2049-03-05T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-638", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MzQgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T17:34:00.000Z" } }, { "_sort": "2049-03-05T17:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T17:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-639", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MzQgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T11:04:00.000Z" } }, { "_sort": "2049-03-05T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-640", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MzQ6NTYuMDAwMTIzIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T12:34:56.000Z" } }, { "_sort": "2049-03-05T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-641", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MzQ6NTYuMDAwMTIzIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T12:34:56.000Z" } }, { "_sort": "2049-03-05T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-642", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MzQ6NTYuMDAwMTIzIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T11:04:56.000Z" } }, { "_sort": "2049-03-05T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-643", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MzQ6NTYuMDAwMTIzIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T17:34:56.000Z" } }, { "_sort": "2049-03-05T17:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T17:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-644", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MzQ6NTYuMDAwMTIzICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T11:04:56.000Z" } }, { "_sort": "2049-03-05T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-645", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T12:34:56.999Z" } }, { "_sort": "2049-03-05T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-646", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T12:34:56.999Z" } }, { "_sort": "2049-03-05T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-647", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T11:04:56.999Z" } }, { "_sort": "2049-03-05T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-648", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T17:34:56.999Z" } }, { "_sort": "2049-03-05T17:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T17:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-649", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5ICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T11:04:56.999Z" } }, { "_sort": "2049-03-05T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-650", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMjQ6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-06T00:00:00.000Z" } }, { "_sort": "2049-03-06T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-06T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-651", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMjQ6MDAgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-06T00:00:00.000Z" } }, { "_sort": "2049-03-06T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-06T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-652", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMjQ6MDAgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T22:30:00.000Z" } }, { "_sort": "2049-03-05T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-653", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMjQ6MDAgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-06T05:00:00.000Z" } }, { "_sort": "2049-03-06T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-06T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-654", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMjQ6MDAgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T22:30:00.000Z" } }, { "_sort": "2049-03-05T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-655", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MDAgQU0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T00:00:00.000Z" } }, { "_sort": "2049-03-05T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-656", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MDAgQU0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T00:00:00.000Z" } }, { "_sort": "2049-03-05T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-657", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MDAgQU0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-04T22:30:00.000Z" } }, { "_sort": "2049-03-04T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-04T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-658", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MDAgQU0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T05:00:00.000Z" } }, { "_sort": "2049-03-05T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-659", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MDAgQU0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-04T22:30:00.000Z" } }, { "_sort": "2049-03-04T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-04T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-660", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MDAgUE0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T12:00:00.000Z" } }, { "_sort": "2049-03-05T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-661", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MDAgUE0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T12:00:00.000Z" } }, { "_sort": "2049-03-05T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-662", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MDAgUE0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T10:30:00.000Z" } }, { "_sort": "2049-03-05T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-663", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MDAgUE0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T17:00:00.000Z" } }, { "_sort": "2049-03-05T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-664", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MDAgUE0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T10:30:00.000Z" } }, { "_sort": "2049-03-05T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-665", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMDowMCBQTSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T12:00:00.000Z" } }, { "_sort": "2049-03-05T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-666", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMDowMCBQTSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T12:00:00.000Z" } }, { "_sort": "2049-03-05T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-667", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMDowMCBQTSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T10:30:00.000Z" } }, { "_sort": "2049-03-05T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-668", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMDowMCBQTSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T17:00:00.000Z" } }, { "_sort": "2049-03-05T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-669", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMDowMCBQTSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T10:30:00.000Z" } }, { "_sort": "2049-03-05T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-670", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTM6MDAgUE0ifQ" }, "error": "invalid_cursor" }, { "name": "case-671", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTM6MDAgUE0gR01UIn0" }, "error": "invalid_cursor" }, { "name": "case-672", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTM6MDAgUE0gVVRDKzAxOjMwIn0" }, "error": "invalid_cursor" }, { "name": "case-673", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTM6MDAgUE0gRVNUIn0" }, "error": "invalid_cursor" }, { "name": "case-674", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTM6MDAgUE0gKzAxMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-675", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T00:00:00.000Z" } }, { "_sort": "1999-12-31T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-676", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T00:00:00.000Z" } }, { "_sort": "1999-12-31T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-677", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-30T22:30:00.000Z" } }, { "_sort": "1999-12-30T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-30T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-678", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T05:00:00.000Z" } }, { "_sort": "1999-12-31T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-679", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5ICswMTMwIn0" }, "error": "invalid_cursor" }, { "name": "case-680", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjM0In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T12:34:00.000Z" } }, { "_sort": "1999-12-31T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-681", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjM0IEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T12:34:00.000Z" } }, { "_sort": "1999-12-31T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-682", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjM0IFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T11:04:00.000Z" } }, { "_sort": "1999-12-31T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-683", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjM0IEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T17:34:00.000Z" } }, { "_sort": "1999-12-31T17:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T17:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-684", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjM0ICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T11:04:00.000Z" } }, { "_sort": "1999-12-31T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-685", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjM0OjU2LjAwMDEyMyJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T12:34:56.000Z" } }, { "_sort": "1999-12-31T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-686", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjM0OjU2LjAwMDEyMyBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T12:34:56.000Z" } }, { "_sort": "1999-12-31T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-687", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjM0OjU2LjAwMDEyMyBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T11:04:56.000Z" } }, { "_sort": "1999-12-31T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-688", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjM0OjU2LjAwMDEyMyBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T17:34:56.000Z" } }, { "_sort": "1999-12-31T17:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T17:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-689", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjM0OjU2LjAwMDEyMyArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T11:04:56.000Z" } }, { "_sort": "1999-12-31T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-690", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T12:34:56.999Z" } }, { "_sort": "1999-12-31T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-691", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T12:34:56.999Z" } }, { "_sort": "1999-12-31T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-692", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T11:04:56.999Z" } }, { "_sort": "1999-12-31T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-693", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T17:34:56.999Z" } }, { "_sort": "1999-12-31T17:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T17:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-694", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T11:04:56.999Z" } }, { "_sort": "1999-12-31T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-695", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDI0OjAwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2000-01-01T00:00:00.000Z" } }, { "_sort": "2000-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2000-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-696", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDI0OjAwIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2000-01-01T00:00:00.000Z" } }, { "_sort": "2000-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2000-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-697", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDI0OjAwIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T22:30:00.000Z" } }, { "_sort": "1999-12-31T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-698", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDI0OjAwIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2000-01-01T05:00:00.000Z" } }, { "_sort": "2000-01-01T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2000-01-01T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-699", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDI0OjAwICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T22:30:00.000Z" } }, { "_sort": "1999-12-31T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-700", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjAwIEFNIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T00:00:00.000Z" } }, { "_sort": "1999-12-31T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-701", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjAwIEFNIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T00:00:00.000Z" } }, { "_sort": "1999-12-31T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-702", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjAwIEFNIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-30T22:30:00.000Z" } }, { "_sort": "1999-12-30T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-30T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-703", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjAwIEFNIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T05:00:00.000Z" } }, { "_sort": "1999-12-31T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-704", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjAwIEFNICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-30T22:30:00.000Z" } }, { "_sort": "1999-12-30T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-30T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-705", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjAwIFBNIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T12:00:00.000Z" } }, { "_sort": "1999-12-31T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-706", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjAwIFBNIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T12:00:00.000Z" } }, { "_sort": "1999-12-31T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-707", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjAwIFBNIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T10:30:00.000Z" } }, { "_sort": "1999-12-31T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-708", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjAwIFBNIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T17:00:00.000Z" } }, { "_sort": "1999-12-31T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-709", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjAwIFBNICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T10:30:00.000Z" } }, { "_sort": "1999-12-31T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-710", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDA6MDAgUE0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T12:00:00.000Z" } }, { "_sort": "1999-12-31T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-711", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDA6MDAgUE0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T12:00:00.000Z" } }, { "_sort": "1999-12-31T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-712", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDA6MDAgUE0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T10:30:00.000Z" } }, { "_sort": "1999-12-31T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-713", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDA6MDAgUE0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T17:00:00.000Z" } }, { "_sort": "1999-12-31T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-714", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDA6MDAgUE0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T10:30:00.000Z" } }, { "_sort": "1999-12-31T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-715", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEzOjAwIFBNIn0" }, "error": "invalid_cursor" }, { "name": "case-716", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEzOjAwIFBNIEdNVCJ9" }, "error": "invalid_cursor" }, { "name": "case-717", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEzOjAwIFBNIFVUQyswMTozMCJ9" }, "error": "invalid_cursor" }, { "name": "case-718", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEzOjAwIFBNIEVTVCJ9" }, "error": "invalid_cursor" }, { "name": "case-719", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEzOjAwIFBNICswMTMwIn0" }, "error": "invalid_cursor" }, { "name": "case-720", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T00:00:00.000Z" } }, { "_sort": "2024-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-721", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T00:00:00.000Z" } }, { "_sort": "2024-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-722", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T22:30:00.000Z" } }, { "_sort": "2024-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-723", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T05:00:00.000Z" } }, { "_sort": "2024-01-02T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-724", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyICswMTMwIn0" }, "error": "invalid_cursor" }, { "name": "case-725", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjM0In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T12:34:00.000Z" } }, { "_sort": "2024-01-02T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-726", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjM0IEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T12:34:00.000Z" } }, { "_sort": "2024-01-02T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-727", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjM0IFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T11:04:00.000Z" } }, { "_sort": "2024-01-02T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-728", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjM0IEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T17:34:00.000Z" } }, { "_sort": "2024-01-02T17:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T17:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-729", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjM0ICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T11:04:00.000Z" } }, { "_sort": "2024-01-02T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-730", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjM0OjU2LjAwMDEyMyJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T12:34:56.000Z" } }, { "_sort": "2024-01-02T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-731", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjM0OjU2LjAwMDEyMyBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T12:34:56.000Z" } }, { "_sort": "2024-01-02T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-732", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjM0OjU2LjAwMDEyMyBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T11:04:56.000Z" } }, { "_sort": "2024-01-02T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-733", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjM0OjU2LjAwMDEyMyBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T17:34:56.000Z" } }, { "_sort": "2024-01-02T17:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T17:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-734", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjM0OjU2LjAwMDEyMyArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T11:04:56.000Z" } }, { "_sort": "2024-01-02T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-735", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T12:34:56.999Z" } }, { "_sort": "2024-01-02T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-736", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T12:34:56.999Z" } }, { "_sort": "2024-01-02T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-737", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T11:04:56.999Z" } }, { "_sort": "2024-01-02T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-738", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T17:34:56.999Z" } }, { "_sort": "2024-01-02T17:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T17:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-739", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T11:04:56.999Z" } }, { "_sort": "2024-01-02T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-740", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDI0OjAwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-03T00:00:00.000Z" } }, { "_sort": "2024-01-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-741", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDI0OjAwIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-03T00:00:00.000Z" } }, { "_sort": "2024-01-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-742", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDI0OjAwIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T22:30:00.000Z" } }, { "_sort": "2024-01-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-743", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDI0OjAwIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-03T05:00:00.000Z" } }, { "_sort": "2024-01-03T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-03T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-744", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDI0OjAwICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T22:30:00.000Z" } }, { "_sort": "2024-01-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-745", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjAwIEFNIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T00:00:00.000Z" } }, { "_sort": "2024-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-746", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjAwIEFNIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T00:00:00.000Z" } }, { "_sort": "2024-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-747", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjAwIEFNIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T22:30:00.000Z" } }, { "_sort": "2024-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-748", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjAwIEFNIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T05:00:00.000Z" } }, { "_sort": "2024-01-02T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-749", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjAwIEFNICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T22:30:00.000Z" } }, { "_sort": "2024-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-750", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjAwIFBNIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T12:00:00.000Z" } }, { "_sort": "2024-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-751", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjAwIFBNIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T12:00:00.000Z" } }, { "_sort": "2024-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-752", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjAwIFBNIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T10:30:00.000Z" } }, { "_sort": "2024-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-753", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjAwIFBNIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T17:00:00.000Z" } }, { "_sort": "2024-01-02T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-754", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjAwIFBNICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T10:30:00.000Z" } }, { "_sort": "2024-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-755", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDA6MDAgUE0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T12:00:00.000Z" } }, { "_sort": "2024-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-756", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDA6MDAgUE0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T12:00:00.000Z" } }, { "_sort": "2024-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-757", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDA6MDAgUE0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T10:30:00.000Z" } }, { "_sort": "2024-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-758", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDA6MDAgUE0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T17:00:00.000Z" } }, { "_sort": "2024-01-02T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-759", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDA6MDAgUE0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T10:30:00.000Z" } }, { "_sort": "2024-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-760", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEzOjAwIFBNIn0" }, "error": "invalid_cursor" }, { "name": "case-761", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEzOjAwIFBNIEdNVCJ9" }, "error": "invalid_cursor" }, { "name": "case-762", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEzOjAwIFBNIFVUQyswMTozMCJ9" }, "error": "invalid_cursor" }, { "name": "case-763", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEzOjAwIFBNIEVTVCJ9" }, "error": "invalid_cursor" }, { "name": "case-764", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEzOjAwIFBNICswMTMwIn0" }, "error": "invalid_cursor" }, { "name": "case-765", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDEgIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-766", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDFcdCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-767", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDFcbiJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-768", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDHvu78ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-769", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDEgKGlnbm9yZWQpIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-770", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDEgZ2FyYmFnZSJ9" }, "error": "invalid_cursor" }, { "name": "case-771", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDFcdTAwMDBpZ25vcmVkIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-772", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6WyIyMDI0LTAyLTI5Il19" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T00:00:00.000Z" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-773", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6WyIyMDI0LTAyLTI5Il19" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T00:00:00.000Z" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-774", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6WyIyMDI0LTAyLTI5IiwiMjAyNC0wMy0wMSJdfQ" }, "error": "invalid_cursor" }, { "name": "case-775", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6WyIiXX0" }, "error": "invalid_cursor" }, { "name": "case-776", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6eyJ4IjoieCJ9fQ" }, "error": "invalid_cursor" }, { "name": "case-777", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6eyJ0b1N0cmluZyI6IngifX0" }, "error": "invalid_cursor" }, { "name": "case-778", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6ImludmFsaWQifQ" }, "error": "invalid_cursor" }, { "name": "case-779", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6eyJ0b1N0cmluZyI6IngifX0" }, "error": "invalid_cursor" }, { "name": "case-780", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ik1hcmNoIDEgMjAyNCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-781", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-782", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMjQ6MDA6MDBaIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-783", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T00:00:00.000Z" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-784", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6WyIyMDI0IiwiMyIsIjEiXX0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-785", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDMtMDFUMDE6MDA6MDArMDI6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T23:00:00.000Z" } }, { "_sort": "2024-02-29T23:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T23:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-786", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDMtMDF0MDA6MDB6In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-787", "query": { "sort": "anonymizeDate", "cursor": "eyJzb3J0IjoiYW5vbnltaXplRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDMtMDFUMDA6MDBaXHUwMDAwaWdub3JlZCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-788", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiIn0" }, "error": "invalid_cursor" }, { "name": "case-789", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiaW52YWxpZCJ9" }, "error": "invalid_cursor" }, { "name": "case-790", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "0000-01-01T00:00:00.000Z" } }, { "_sort": "0000-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "0000-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-791", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "0001-01-01T00:00:00.000Z" } }, { "_sort": "0001-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "0001-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-792", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-793", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMiJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-01T00:00:00.000Z" } }, { "_sort": "2024-02-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-794", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-01T00:00:00.000Z" } }, { "_sort": "2023-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-795", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-796", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-02T00:00:00.000Z" } }, { "_sort": "2024-03-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-797", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMiJ9" }, "error": "invalid_cursor" }, { "name": "case-798", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMC0wMSJ9" }, "error": "invalid_cursor" }, { "name": "case-799", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0xMy0wMSJ9" }, "error": "invalid_cursor" }, { "name": "case-800", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMS0wMCJ9" }, "error": "invalid_cursor" }, { "name": "case-801", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMS0wMSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-802", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNFQwMDowMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-803", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMlQwMDowMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-01T00:00:00.000Z" } }, { "_sort": "2024-02-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-804", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMS0wMXQwMDowMHoifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-805", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiIDIwMjQtMDEtMDEgIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-806", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMS0wMVQwMDowMFogIn0" }, "error": "invalid_cursor" }, { "name": "case-807", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMS0wMVQwMDowMFpcdTAwMDBpZ25vcmVkIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-808", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiKzAxMDAwMC0wMS0wMSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "+010000-01-01T00:00:00.000Z" } }, { "_sort": "+010000-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "+010000-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-809", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMS0wMS0wMSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "-000001-01-01T00:00:00.000Z" } }, { "_sort": "-000001-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "-000001-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-810", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMS0wMSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T00:00:00.000Z" } }, { "_sort": "2001-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-811", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiKzI3NTc2MC0wOS0xMyJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "+275760-09-13T00:00:00.000Z" } }, { "_sort": "+275760-09-13T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "+275760-09-13T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-812", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiKzI3NTc2MC0wOS0xNCJ9" }, "error": "invalid_cursor" }, { "name": "case-813", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTI3MTgyMS0wNC0yMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "-271821-04-20T00:00:00.000Z" } }, { "_sort": "-271821-04-20T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "-271821-04-20T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-814", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTI3MTgyMS0wNC0xOSJ9" }, "error": "invalid_cursor" }, { "name": "case-815", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQwMDowMFoifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T00:00:00.000Z" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-816", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQwMDowMCswMjozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-28T21:30:00.000Z" } }, { "_sort": "2024-02-28T21:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-28T21:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-817", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQwMDowMC0wMzMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T03:30:00.000Z" } }, { "_sort": "2024-02-29T03:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T03:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-818", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQwMDowMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T00:00:00.000Z" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-819", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQxMjozNDo1NloifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T12:34:56.000Z" } }, { "_sort": "2024-02-29T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-820", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQxMjozNDo1NiswMjozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T10:04:56.000Z" } }, { "_sort": "2024-02-29T10:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T10:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-821", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQxMjozNDo1Ni0wMzMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T16:04:56.000Z" } }, { "_sort": "2024-02-29T16:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T16:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-822", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQxMjozNDo1NiJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T12:34:56.000Z" } }, { "_sort": "2024-02-29T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-823", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQxMjozNDo1Ni4xWiJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T12:34:56.100Z" } }, { "_sort": "2024-02-29T12:34:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-824", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQxMjozNDo1Ni4xKzAyOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T10:04:56.100Z" } }, { "_sort": "2024-02-29T10:04:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T10:04:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-825", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQxMjozNDo1Ni4xLTAzMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T16:04:56.100Z" } }, { "_sort": "2024-02-29T16:04:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T16:04:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-826", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQxMjozNDo1Ni4xIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T12:34:56.100Z" } }, { "_sort": "2024-02-29T12:34:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-827", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQxMjozNDo1Ni4xMjM0NTY3ODlaIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T12:34:56.123Z" } }, { "_sort": "2024-02-29T12:34:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-828", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQxMjozNDo1Ni4xMjM0NTY3ODkrMDI6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T10:04:56.123Z" } }, { "_sort": "2024-02-29T10:04:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T10:04:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-829", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQxMjozNDo1Ni4xMjM0NTY3ODktMDMzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T16:04:56.123Z" } }, { "_sort": "2024-02-29T16:04:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T16:04:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-830", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQxMjozNDo1Ni4xMjM0NTY3ODkifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T12:34:56.123Z" } }, { "_sort": "2024-02-29T12:34:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-831", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQyNDowMFoifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-832", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQyNDowMCswMjozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T21:30:00.000Z" } }, { "_sort": "2024-02-29T21:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T21:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-833", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQyNDowMC0wMzMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-01T03:30:00.000Z" } }, { "_sort": "2024-03-01T03:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T03:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-834", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQyNDowMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-835", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQyNDowMDowMC4wMDFaIn0" }, "error": "invalid_cursor" }, { "name": "case-836", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQyNDowMDowMC4wMDErMDI6MzAifQ" }, "error": "invalid_cursor" }, { "name": "case-837", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQyNDowMDowMC4wMDEtMDMzMCJ9" }, "error": "invalid_cursor" }, { "name": "case-838", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQyNDowMDowMC4wMDEifQ" }, "error": "invalid_cursor" }, { "name": "case-839", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQyNTowMFoifQ" }, "error": "invalid_cursor" }, { "name": "case-840", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQyNTowMCswMjozMCJ9" }, "error": "invalid_cursor" }, { "name": "case-841", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQyNTowMC0wMzMwIn0" }, "error": "invalid_cursor" }, { "name": "case-842", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQyNTowMCJ9" }, "error": "invalid_cursor" }, { "name": "case-843", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQxMjo2MFoifQ" }, "error": "invalid_cursor" }, { "name": "case-844", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQxMjo2MCswMjozMCJ9" }, "error": "invalid_cursor" }, { "name": "case-845", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQxMjo2MC0wMzMwIn0" }, "error": "invalid_cursor" }, { "name": "case-846", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQxMjo2MCJ9" }, "error": "invalid_cursor" }, { "name": "case-847", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQxMjozNDo2MFoifQ" }, "error": "invalid_cursor" }, { "name": "case-848", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQxMjozNDo2MCswMjozMCJ9" }, "error": "invalid_cursor" }, { "name": "case-849", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQxMjozNDo2MC0wMzMwIn0" }, "error": "invalid_cursor" }, { "name": "case-850", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQxMjozNDo2MCJ9" }, "error": "invalid_cursor" }, { "name": "case-851", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQwMDowMFoifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-01T00:00:00.000Z" } }, { "_sort": "2023-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-852", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQwMDowMCswMjozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-02-28T21:30:00.000Z" } }, { "_sort": "2023-02-28T21:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-02-28T21:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-853", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQwMDowMC0wMzMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-01T03:30:00.000Z" } }, { "_sort": "2023-03-01T03:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T03:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-854", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQwMDowMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-01T00:00:00.000Z" } }, { "_sort": "2023-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-855", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQxMjozNDo1NloifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-01T12:34:56.000Z" } }, { "_sort": "2023-03-01T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-856", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQxMjozNDo1NiswMjozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-01T10:04:56.000Z" } }, { "_sort": "2023-03-01T10:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T10:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-857", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQxMjozNDo1Ni0wMzMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-01T16:04:56.000Z" } }, { "_sort": "2023-03-01T16:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T16:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-858", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQxMjozNDo1NiJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-01T12:34:56.000Z" } }, { "_sort": "2023-03-01T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-859", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQxMjozNDo1Ni4xWiJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-01T12:34:56.100Z" } }, { "_sort": "2023-03-01T12:34:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T12:34:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-860", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQxMjozNDo1Ni4xKzAyOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-01T10:04:56.100Z" } }, { "_sort": "2023-03-01T10:04:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T10:04:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-861", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQxMjozNDo1Ni4xLTAzMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-01T16:04:56.100Z" } }, { "_sort": "2023-03-01T16:04:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T16:04:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-862", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQxMjozNDo1Ni4xIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-01T12:34:56.100Z" } }, { "_sort": "2023-03-01T12:34:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T12:34:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-863", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQxMjozNDo1Ni4xMjM0NTY3ODlaIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-01T12:34:56.123Z" } }, { "_sort": "2023-03-01T12:34:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T12:34:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-864", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQxMjozNDo1Ni4xMjM0NTY3ODkrMDI6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-01T10:04:56.123Z" } }, { "_sort": "2023-03-01T10:04:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T10:04:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-865", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQxMjozNDo1Ni4xMjM0NTY3ODktMDMzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-01T16:04:56.123Z" } }, { "_sort": "2023-03-01T16:04:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T16:04:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-866", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQxMjozNDo1Ni4xMjM0NTY3ODkifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-01T12:34:56.123Z" } }, { "_sort": "2023-03-01T12:34:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T12:34:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-867", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQyNDowMFoifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T00:00:00.000Z" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-868", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQyNDowMCswMjozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-01T21:30:00.000Z" } }, { "_sort": "2023-03-01T21:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T21:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-869", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQyNDowMC0wMzMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T03:30:00.000Z" } }, { "_sort": "2023-03-02T03:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T03:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-870", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQyNDowMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T00:00:00.000Z" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-871", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQyNDowMDowMC4wMDFaIn0" }, "error": "invalid_cursor" }, { "name": "case-872", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQyNDowMDowMC4wMDErMDI6MzAifQ" }, "error": "invalid_cursor" }, { "name": "case-873", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQyNDowMDowMC4wMDEtMDMzMCJ9" }, "error": "invalid_cursor" }, { "name": "case-874", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQyNDowMDowMC4wMDEifQ" }, "error": "invalid_cursor" }, { "name": "case-875", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQyNTowMFoifQ" }, "error": "invalid_cursor" }, { "name": "case-876", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQyNTowMCswMjozMCJ9" }, "error": "invalid_cursor" }, { "name": "case-877", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQyNTowMC0wMzMwIn0" }, "error": "invalid_cursor" }, { "name": "case-878", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQyNTowMCJ9" }, "error": "invalid_cursor" }, { "name": "case-879", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQxMjo2MFoifQ" }, "error": "invalid_cursor" }, { "name": "case-880", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQxMjo2MCswMjozMCJ9" }, "error": "invalid_cursor" }, { "name": "case-881", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQxMjo2MC0wMzMwIn0" }, "error": "invalid_cursor" }, { "name": "case-882", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQxMjo2MCJ9" }, "error": "invalid_cursor" }, { "name": "case-883", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQxMjozNDo2MFoifQ" }, "error": "invalid_cursor" }, { "name": "case-884", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQxMjozNDo2MCswMjozMCJ9" }, "error": "invalid_cursor" }, { "name": "case-885", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQxMjozNDo2MC0wMzMwIn0" }, "error": "invalid_cursor" }, { "name": "case-886", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0yOVQxMjozNDo2MCJ9" }, "error": "invalid_cursor" }, { "name": "case-887", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQwMDowMFoifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-888", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQwMDowMCswMjozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T21:30:00.000Z" } }, { "_sort": "2024-02-29T21:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T21:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-889", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQwMDowMC0wMzMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-01T03:30:00.000Z" } }, { "_sort": "2024-03-01T03:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T03:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-890", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQwMDowMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-891", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQxMjozNDo1NloifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-01T12:34:56.000Z" } }, { "_sort": "2024-03-01T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-892", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQxMjozNDo1NiswMjozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-01T10:04:56.000Z" } }, { "_sort": "2024-03-01T10:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T10:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-893", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQxMjozNDo1Ni0wMzMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-01T16:04:56.000Z" } }, { "_sort": "2024-03-01T16:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T16:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-894", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQxMjozNDo1NiJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-01T12:34:56.000Z" } }, { "_sort": "2024-03-01T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-895", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQxMjozNDo1Ni4xWiJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-01T12:34:56.100Z" } }, { "_sort": "2024-03-01T12:34:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T12:34:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-896", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQxMjozNDo1Ni4xKzAyOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-01T10:04:56.100Z" } }, { "_sort": "2024-03-01T10:04:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T10:04:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-897", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQxMjozNDo1Ni4xLTAzMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-01T16:04:56.100Z" } }, { "_sort": "2024-03-01T16:04:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T16:04:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-898", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQxMjozNDo1Ni4xIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-01T12:34:56.100Z" } }, { "_sort": "2024-03-01T12:34:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T12:34:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-899", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQxMjozNDo1Ni4xMjM0NTY3ODlaIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-01T12:34:56.123Z" } }, { "_sort": "2024-03-01T12:34:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T12:34:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-900", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQxMjozNDo1Ni4xMjM0NTY3ODkrMDI6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-01T10:04:56.123Z" } }, { "_sort": "2024-03-01T10:04:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T10:04:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-901", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQxMjozNDo1Ni4xMjM0NTY3ODktMDMzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-01T16:04:56.123Z" } }, { "_sort": "2024-03-01T16:04:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T16:04:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-902", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQxMjozNDo1Ni4xMjM0NTY3ODkifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-01T12:34:56.123Z" } }, { "_sort": "2024-03-01T12:34:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T12:34:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-903", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQyNDowMFoifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-02T00:00:00.000Z" } }, { "_sort": "2024-03-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-904", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQyNDowMCswMjozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-01T21:30:00.000Z" } }, { "_sort": "2024-03-01T21:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T21:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-905", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQyNDowMC0wMzMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-02T03:30:00.000Z" } }, { "_sort": "2024-03-02T03:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-02T03:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-906", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQyNDowMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-02T00:00:00.000Z" } }, { "_sort": "2024-03-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-907", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQyNDowMDowMC4wMDFaIn0" }, "error": "invalid_cursor" }, { "name": "case-908", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQyNDowMDowMC4wMDErMDI6MzAifQ" }, "error": "invalid_cursor" }, { "name": "case-909", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQyNDowMDowMC4wMDEtMDMzMCJ9" }, "error": "invalid_cursor" }, { "name": "case-910", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQyNDowMDowMC4wMDEifQ" }, "error": "invalid_cursor" }, { "name": "case-911", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQyNTowMFoifQ" }, "error": "invalid_cursor" }, { "name": "case-912", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQyNTowMCswMjozMCJ9" }, "error": "invalid_cursor" }, { "name": "case-913", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQyNTowMC0wMzMwIn0" }, "error": "invalid_cursor" }, { "name": "case-914", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQyNTowMCJ9" }, "error": "invalid_cursor" }, { "name": "case-915", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQxMjo2MFoifQ" }, "error": "invalid_cursor" }, { "name": "case-916", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQxMjo2MCswMjozMCJ9" }, "error": "invalid_cursor" }, { "name": "case-917", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQxMjo2MC0wMzMwIn0" }, "error": "invalid_cursor" }, { "name": "case-918", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQxMjo2MCJ9" }, "error": "invalid_cursor" }, { "name": "case-919", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQxMjozNDo2MFoifQ" }, "error": "invalid_cursor" }, { "name": "case-920", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQxMjozNDo2MCswMjozMCJ9" }, "error": "invalid_cursor" }, { "name": "case-921", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQxMjozNDo2MC0wMzMwIn0" }, "error": "invalid_cursor" }, { "name": "case-922", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMFQxMjozNDo2MCJ9" }, "error": "invalid_cursor" }, { "name": "case-923", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2000-01-01T00:00:00.000Z" } }, { "_sort": "2000-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2000-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-924", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T00:00:00.000Z" } }, { "_sort": "2001-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-925", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMTIifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-12-01T00:00:00.000Z" } }, { "_sort": "2001-12-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-12-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-926", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMTMifQ" }, "error": "invalid_cursor" }, { "name": "case-927", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzEifQ" }, "error": "invalid_cursor" }, { "name": "case-928", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-01T00:00:00.000Z" } }, { "_sort": "2032-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-929", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNDkifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-01-01T00:00:00.000Z" } }, { "_sort": "2049-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-930", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNTAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1950-01-01T00:00:00.000Z" } }, { "_sort": "1950-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1950-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-931", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiOTkifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-01-01T00:00:00.000Z" } }, { "_sort": "1999-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-932", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMTAwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "0100-01-01T00:00:00.000Z" } }, { "_sort": "0100-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "0100-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-933", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMDAwLTAxLTAxIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2000-01-01T00:00:00.000Z" } }, { "_sort": "2000-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2000-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-934", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T00:00:00.000Z" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-935", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMS0wMVQwMDowMFoifQ" }, "error": "invalid_cursor" }, { "name": "case-936", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMS8yLzAzIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T00:00:00.000Z" } }, { "_sort": "2003-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-937", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC8wMi8zMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-938", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC4wMi4yOSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T00:00:00.000Z" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-939", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T00:00:00.000Z" } }, { "_sort": "2001-01-05T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-940", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBKYW51YXJ5IDIwMjQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-05T00:00:00.000Z" } }, { "_sort": "2024-01-05T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-05T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-941", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiVHVlLCAwNSBNYXIgMjAyNCAxMjozNDo1NiBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-05T12:34:56.000Z" } }, { "_sort": "2024-03-05T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-05T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-942", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiTWFyY2ggNSwgMjAyNCAxMjozMCBQTSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-05T12:30:00.000Z" } }, { "_sort": "2024-03-05T12:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-05T12:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-943", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMS0wMSAxMjozNDo1NiJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-01T12:34:56.000Z" } }, { "_sort": "2024-01-01T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-944", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMS0wMSAxMjozNDo1Ni4xMjM0IEdNVCswMjAwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-01T10:34:56.123Z" } }, { "_sort": "2024-01-01T10:34:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T10:34:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-945", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMS0wMSAoY29tbWVudCkifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-946", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiKGNvbW1lbnQpIDIwMjQtMDEtMDEifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-947", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiZ2FyYmFnZSAyMDI0LTAxLTAxIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-948", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiZ2FyYmFnZTIwMjQtMDEtMDEifQ" }, "error": "invalid_cursor" }, { "name": "case-949", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMS0wMSBnYXJiYWdlIn0" }, "error": "invalid_cursor" }, { "name": "case-950", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMS0wMSBHTVQtOCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-01T08:00:00.000Z" } }, { "_sort": "2024-01-01T08:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T08:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-951", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMS0wMSAxMjo6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-01T12:00:30.000Z" } }, { "_sort": "2024-01-01T12:00:30.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T12:00:30.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-952", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMS0wMSAxMjozMDo0MCBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-01T17:30:40.000Z" } }, { "_sort": "2024-01-01T17:30:40.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T17:30:40.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-953", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiOTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5In0" }, "error": "invalid_cursor" }, { "name": "case-954", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T00:00:00.000Z" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-955", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T00:00:00.000Z" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-956", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-28T22:30:00.000Z" } }, { "_sort": "2024-02-28T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-28T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-957", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T05:00:00.000Z" } }, { "_sort": "2024-02-29T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-958", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSArMDEzMCJ9" }, "error": "invalid_cursor" }, { "name": "case-959", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAxMjozNCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T12:34:00.000Z" } }, { "_sort": "2024-02-29T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-960", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAxMjozNCBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T12:34:00.000Z" } }, { "_sort": "2024-02-29T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-961", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAxMjozNCBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T11:04:00.000Z" } }, { "_sort": "2024-02-29T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-962", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAxMjozNCBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T17:34:00.000Z" } }, { "_sort": "2024-02-29T17:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T17:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-963", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAxMjozNCArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T11:04:00.000Z" } }, { "_sort": "2024-02-29T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-964", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAxMjozNDo1Ni4wMDAxMjMifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T12:34:56.000Z" } }, { "_sort": "2024-02-29T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-965", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAxMjozNDo1Ni4wMDAxMjMgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T12:34:56.000Z" } }, { "_sort": "2024-02-29T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-966", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAxMjozNDo1Ni4wMDAxMjMgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T11:04:56.000Z" } }, { "_sort": "2024-02-29T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-967", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAxMjozNDo1Ni4wMDAxMjMgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T17:34:56.000Z" } }, { "_sort": "2024-02-29T17:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T17:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-968", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAxMjozNDo1Ni4wMDAxMjMgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T11:04:56.000Z" } }, { "_sort": "2024-02-29T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-969", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAxMjozNDo1Ni45OTk5OTk5OTk5OTkifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T12:34:56.999Z" } }, { "_sort": "2024-02-29T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-970", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAxMjozNDo1Ni45OTk5OTk5OTk5OTkgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T12:34:56.999Z" } }, { "_sort": "2024-02-29T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-971", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAxMjozNDo1Ni45OTk5OTk5OTk5OTkgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T11:04:56.999Z" } }, { "_sort": "2024-02-29T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-972", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAxMjozNDo1Ni45OTk5OTk5OTk5OTkgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T17:34:56.999Z" } }, { "_sort": "2024-02-29T17:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T17:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-973", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAxMjozNDo1Ni45OTk5OTk5OTk5OTkgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T11:04:56.999Z" } }, { "_sort": "2024-02-29T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-974", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAyNDowMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-975", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAyNDowMCBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-976", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAyNDowMCBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T22:30:00.000Z" } }, { "_sort": "2024-02-29T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-977", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAyNDowMCBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-01T05:00:00.000Z" } }, { "_sort": "2024-03-01T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-978", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAyNDowMCArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T22:30:00.000Z" } }, { "_sort": "2024-02-29T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-979", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAxMjowMCBBTSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T00:00:00.000Z" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-980", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAxMjowMCBBTSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T00:00:00.000Z" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-981", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAxMjowMCBBTSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-28T22:30:00.000Z" } }, { "_sort": "2024-02-28T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-28T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-982", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAxMjowMCBBTSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T05:00:00.000Z" } }, { "_sort": "2024-02-29T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-983", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAxMjowMCBBTSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-28T22:30:00.000Z" } }, { "_sort": "2024-02-28T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-28T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-984", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAxMjowMCBQTSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T12:00:00.000Z" } }, { "_sort": "2024-02-29T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-985", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAxMjowMCBQTSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T12:00:00.000Z" } }, { "_sort": "2024-02-29T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-986", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAxMjowMCBQTSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T10:30:00.000Z" } }, { "_sort": "2024-02-29T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-987", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAxMjowMCBQTSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T17:00:00.000Z" } }, { "_sort": "2024-02-29T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-988", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAxMjowMCBQTSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T10:30:00.000Z" } }, { "_sort": "2024-02-29T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-989", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAwOjAwIFBNIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T12:00:00.000Z" } }, { "_sort": "2024-02-29T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-990", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAwOjAwIFBNIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T12:00:00.000Z" } }, { "_sort": "2024-02-29T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-991", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAwOjAwIFBNIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T10:30:00.000Z" } }, { "_sort": "2024-02-29T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-992", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAwOjAwIFBNIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T17:00:00.000Z" } }, { "_sort": "2024-02-29T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-993", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAwOjAwIFBNICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T10:30:00.000Z" } }, { "_sort": "2024-02-29T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-994", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAxMzowMCBQTSJ9" }, "error": "invalid_cursor" }, { "name": "case-995", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAxMzowMCBQTSBHTVQifQ" }, "error": "invalid_cursor" }, { "name": "case-996", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAxMzowMCBQTSBVVEMrMDE6MzAifQ" }, "error": "invalid_cursor" }, { "name": "case-997", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAxMzowMCBQTSBFU1QifQ" }, "error": "invalid_cursor" }, { "name": "case-998", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOSAxMzowMCBQTSArMDEzMCJ9" }, "error": "invalid_cursor" }, { "name": "case-999", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T00:00:00.000Z" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1000", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T00:00:00.000Z" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1001", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-01T22:30:00.000Z" } }, { "_sort": "2023-03-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1002", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T05:00:00.000Z" } }, { "_sort": "2023-03-02T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1003", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCArMDEzMCJ9" }, "error": "invalid_cursor" }, { "name": "case-1004", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAxMjozNCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T12:34:00.000Z" } }, { "_sort": "2023-03-02T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1005", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAxMjozNCBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T12:34:00.000Z" } }, { "_sort": "2023-03-02T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1006", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAxMjozNCBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T11:04:00.000Z" } }, { "_sort": "2023-03-02T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1007", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAxMjozNCBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T17:34:00.000Z" } }, { "_sort": "2023-03-02T17:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T17:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1008", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAxMjozNCArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T11:04:00.000Z" } }, { "_sort": "2023-03-02T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1009", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAxMjozNDo1Ni4wMDAxMjMifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T12:34:56.000Z" } }, { "_sort": "2023-03-02T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1010", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAxMjozNDo1Ni4wMDAxMjMgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T12:34:56.000Z" } }, { "_sort": "2023-03-02T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1011", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAxMjozNDo1Ni4wMDAxMjMgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T11:04:56.000Z" } }, { "_sort": "2023-03-02T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1012", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAxMjozNDo1Ni4wMDAxMjMgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T17:34:56.000Z" } }, { "_sort": "2023-03-02T17:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T17:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1013", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAxMjozNDo1Ni4wMDAxMjMgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T11:04:56.000Z" } }, { "_sort": "2023-03-02T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1014", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAxMjozNDo1Ni45OTk5OTk5OTk5OTkifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T12:34:56.999Z" } }, { "_sort": "2023-03-02T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1015", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAxMjozNDo1Ni45OTk5OTk5OTk5OTkgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T12:34:56.999Z" } }, { "_sort": "2023-03-02T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1016", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAxMjozNDo1Ni45OTk5OTk5OTk5OTkgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T11:04:56.999Z" } }, { "_sort": "2023-03-02T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1017", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAxMjozNDo1Ni45OTk5OTk5OTk5OTkgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T17:34:56.999Z" } }, { "_sort": "2023-03-02T17:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T17:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1018", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAxMjozNDo1Ni45OTk5OTk5OTk5OTkgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T11:04:56.999Z" } }, { "_sort": "2023-03-02T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1019", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAyNDowMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-03T00:00:00.000Z" } }, { "_sort": "2023-03-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1020", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAyNDowMCBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-03T00:00:00.000Z" } }, { "_sort": "2023-03-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1021", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAyNDowMCBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T22:30:00.000Z" } }, { "_sort": "2023-03-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1022", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAyNDowMCBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-03T05:00:00.000Z" } }, { "_sort": "2023-03-03T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-03T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1023", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAyNDowMCArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T22:30:00.000Z" } }, { "_sort": "2023-03-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1024", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAxMjowMCBBTSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T00:00:00.000Z" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1025", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAxMjowMCBBTSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T00:00:00.000Z" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1026", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAxMjowMCBBTSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-01T22:30:00.000Z" } }, { "_sort": "2023-03-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1027", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAxMjowMCBBTSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T05:00:00.000Z" } }, { "_sort": "2023-03-02T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1028", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAxMjowMCBBTSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-01T22:30:00.000Z" } }, { "_sort": "2023-03-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1029", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAxMjowMCBQTSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T12:00:00.000Z" } }, { "_sort": "2023-03-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1030", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAxMjowMCBQTSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T12:00:00.000Z" } }, { "_sort": "2023-03-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1031", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAxMjowMCBQTSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T10:30:00.000Z" } }, { "_sort": "2023-03-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1032", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAxMjowMCBQTSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T17:00:00.000Z" } }, { "_sort": "2023-03-02T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1033", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAxMjowMCBQTSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T10:30:00.000Z" } }, { "_sort": "2023-03-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1034", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAwOjAwIFBNIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T12:00:00.000Z" } }, { "_sort": "2023-03-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1035", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAwOjAwIFBNIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T12:00:00.000Z" } }, { "_sort": "2023-03-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1036", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAwOjAwIFBNIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T10:30:00.000Z" } }, { "_sort": "2023-03-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1037", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAwOjAwIFBNIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T17:00:00.000Z" } }, { "_sort": "2023-03-02T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1038", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAwOjAwIFBNICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2023-03-02T10:30:00.000Z" } }, { "_sort": "2023-03-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1039", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAxMzowMCBQTSJ9" }, "error": "invalid_cursor" }, { "name": "case-1040", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAxMzowMCBQTSBHTVQifQ" }, "error": "invalid_cursor" }, { "name": "case-1041", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAxMzowMCBQTSBVVEMrMDE6MzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1042", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAxMzowMCBQTSBFU1QifQ" }, "error": "invalid_cursor" }, { "name": "case-1043", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyMy0wMi0zMCAxMzowMCBQTSArMDEzMCJ9" }, "error": "invalid_cursor" }, { "name": "case-1044", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "0001-01-01T00:00:00.000Z" } }, { "_sort": "0001-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "0001-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1045", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T00:00:00.000Z" } }, { "_sort": "2001-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1046", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2000-12-31T22:30:00.000Z" } }, { "_sort": "2000-12-31T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2000-12-31T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1047", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T05:00:00.000Z" } }, { "_sort": "2001-01-01T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1048", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSArMDEzMCJ9" }, "error": "invalid_cursor" }, { "name": "case-1049", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAxMjozNCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T12:34:00.000Z" } }, { "_sort": "2001-01-01T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1050", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAxMjozNCBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T12:34:00.000Z" } }, { "_sort": "2001-01-01T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1051", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAxMjozNCBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T11:04:00.000Z" } }, { "_sort": "2001-01-01T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1052", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAxMjozNCBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T17:34:00.000Z" } }, { "_sort": "2001-01-01T17:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T17:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1053", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAxMjozNCArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T11:04:00.000Z" } }, { "_sort": "2001-01-01T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1054", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAxMjozNDo1Ni4wMDAxMjMifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T12:34:56.000Z" } }, { "_sort": "2001-01-01T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1055", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAxMjozNDo1Ni4wMDAxMjMgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T12:34:56.000Z" } }, { "_sort": "2001-01-01T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1056", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAxMjozNDo1Ni4wMDAxMjMgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T11:04:56.000Z" } }, { "_sort": "2001-01-01T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1057", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAxMjozNDo1Ni4wMDAxMjMgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T17:34:56.000Z" } }, { "_sort": "2001-01-01T17:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T17:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1058", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAxMjozNDo1Ni4wMDAxMjMgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T11:04:56.000Z" } }, { "_sort": "2001-01-01T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1059", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAxMjozNDo1Ni45OTk5OTk5OTk5OTkifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T12:34:56.999Z" } }, { "_sort": "2001-01-01T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1060", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAxMjozNDo1Ni45OTk5OTk5OTk5OTkgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T12:34:56.999Z" } }, { "_sort": "2001-01-01T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1061", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAxMjozNDo1Ni45OTk5OTk5OTk5OTkgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T11:04:56.999Z" } }, { "_sort": "2001-01-01T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1062", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAxMjozNDo1Ni45OTk5OTk5OTk5OTkgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T17:34:56.999Z" } }, { "_sort": "2001-01-01T17:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T17:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1063", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAxMjozNDo1Ni45OTk5OTk5OTk5OTkgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T11:04:56.999Z" } }, { "_sort": "2001-01-01T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1064", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAyNDowMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-02T00:00:00.000Z" } }, { "_sort": "2001-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1065", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAyNDowMCBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-02T00:00:00.000Z" } }, { "_sort": "2001-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1066", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAyNDowMCBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T22:30:00.000Z" } }, { "_sort": "2001-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1067", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAyNDowMCBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-02T05:00:00.000Z" } }, { "_sort": "2001-01-02T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-02T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1068", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAyNDowMCArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T22:30:00.000Z" } }, { "_sort": "2001-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1069", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAxMjowMCBBTSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T00:00:00.000Z" } }, { "_sort": "2001-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1070", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAxMjowMCBBTSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T00:00:00.000Z" } }, { "_sort": "2001-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1071", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAxMjowMCBBTSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2000-12-31T22:30:00.000Z" } }, { "_sort": "2000-12-31T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2000-12-31T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1072", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAxMjowMCBBTSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T05:00:00.000Z" } }, { "_sort": "2001-01-01T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1073", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAxMjowMCBBTSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2000-12-31T22:30:00.000Z" } }, { "_sort": "2000-12-31T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2000-12-31T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1074", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAxMjowMCBQTSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T12:00:00.000Z" } }, { "_sort": "2001-01-01T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1075", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAxMjowMCBQTSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T12:00:00.000Z" } }, { "_sort": "2001-01-01T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1076", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAxMjowMCBQTSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T10:30:00.000Z" } }, { "_sort": "2001-01-01T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1077", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAxMjowMCBQTSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T17:00:00.000Z" } }, { "_sort": "2001-01-01T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1078", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAxMjowMCBQTSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T10:30:00.000Z" } }, { "_sort": "2001-01-01T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1079", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAwOjAwIFBNIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T12:00:00.000Z" } }, { "_sort": "2001-01-01T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1080", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAwOjAwIFBNIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T12:00:00.000Z" } }, { "_sort": "2001-01-01T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1081", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAwOjAwIFBNIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T10:30:00.000Z" } }, { "_sort": "2001-01-01T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1082", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAwOjAwIFBNIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T17:00:00.000Z" } }, { "_sort": "2001-01-01T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1083", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAwOjAwIFBNICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-01T10:30:00.000Z" } }, { "_sort": "2001-01-01T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1084", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAxMzowMCBQTSJ9" }, "error": "invalid_cursor" }, { "name": "case-1085", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAxMzowMCBQTSBHTVQifQ" }, "error": "invalid_cursor" }, { "name": "case-1086", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAxMzowMCBQTSBVVEMrMDE6MzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1087", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAxMzowMCBQTSBFU1QifQ" }, "error": "invalid_cursor" }, { "name": "case-1088", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDAwMS0wMS0wMSAxMzowMCBQTSArMDEzMCJ9" }, "error": "invalid_cursor" }, { "name": "case-1089", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T00:00:00.000Z" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1090", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T00:00:00.000Z" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1091", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-02T22:30:00.000Z" } }, { "_sort": "2001-02-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1092", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T05:00:00.000Z" } }, { "_sort": "2001-02-03T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1093", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyArMDEzMCJ9" }, "error": "invalid_cursor" }, { "name": "case-1094", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAxMjozNCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T12:34:00.000Z" } }, { "_sort": "2001-02-03T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1095", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAxMjozNCBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T12:34:00.000Z" } }, { "_sort": "2001-02-03T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1096", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAxMjozNCBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T11:04:00.000Z" } }, { "_sort": "2001-02-03T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1097", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAxMjozNCBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T17:34:00.000Z" } }, { "_sort": "2001-02-03T17:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T17:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1098", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAxMjozNCArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T11:04:00.000Z" } }, { "_sort": "2001-02-03T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1099", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAxMjozNDo1Ni4wMDAxMjMifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T12:34:56.000Z" } }, { "_sort": "2001-02-03T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1100", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAxMjozNDo1Ni4wMDAxMjMgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T12:34:56.000Z" } }, { "_sort": "2001-02-03T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1101", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAxMjozNDo1Ni4wMDAxMjMgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T11:04:56.000Z" } }, { "_sort": "2001-02-03T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1102", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAxMjozNDo1Ni4wMDAxMjMgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T17:34:56.000Z" } }, { "_sort": "2001-02-03T17:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T17:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1103", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAxMjozNDo1Ni4wMDAxMjMgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T11:04:56.000Z" } }, { "_sort": "2001-02-03T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1104", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAxMjozNDo1Ni45OTk5OTk5OTk5OTkifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T12:34:56.999Z" } }, { "_sort": "2001-02-03T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1105", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAxMjozNDo1Ni45OTk5OTk5OTk5OTkgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T12:34:56.999Z" } }, { "_sort": "2001-02-03T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1106", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAxMjozNDo1Ni45OTk5OTk5OTk5OTkgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T11:04:56.999Z" } }, { "_sort": "2001-02-03T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1107", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAxMjozNDo1Ni45OTk5OTk5OTk5OTkgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T17:34:56.999Z" } }, { "_sort": "2001-02-03T17:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T17:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1108", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAxMjozNDo1Ni45OTk5OTk5OTk5OTkgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T11:04:56.999Z" } }, { "_sort": "2001-02-03T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1109", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAyNDowMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-04T00:00:00.000Z" } }, { "_sort": "2001-02-04T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-04T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1110", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAyNDowMCBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-04T00:00:00.000Z" } }, { "_sort": "2001-02-04T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-04T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1111", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAyNDowMCBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T22:30:00.000Z" } }, { "_sort": "2001-02-03T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1112", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAyNDowMCBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-04T05:00:00.000Z" } }, { "_sort": "2001-02-04T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-04T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1113", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAyNDowMCArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T22:30:00.000Z" } }, { "_sort": "2001-02-03T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1114", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAxMjowMCBBTSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T00:00:00.000Z" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1115", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAxMjowMCBBTSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T00:00:00.000Z" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1116", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAxMjowMCBBTSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-02T22:30:00.000Z" } }, { "_sort": "2001-02-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1117", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAxMjowMCBBTSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T05:00:00.000Z" } }, { "_sort": "2001-02-03T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1118", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAxMjowMCBBTSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-02T22:30:00.000Z" } }, { "_sort": "2001-02-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1119", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAxMjowMCBQTSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T12:00:00.000Z" } }, { "_sort": "2001-02-03T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1120", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAxMjowMCBQTSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T12:00:00.000Z" } }, { "_sort": "2001-02-03T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1121", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAxMjowMCBQTSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T10:30:00.000Z" } }, { "_sort": "2001-02-03T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1122", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAxMjowMCBQTSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T17:00:00.000Z" } }, { "_sort": "2001-02-03T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1123", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAxMjowMCBQTSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T10:30:00.000Z" } }, { "_sort": "2001-02-03T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1124", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAwOjAwIFBNIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T12:00:00.000Z" } }, { "_sort": "2001-02-03T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1125", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAwOjAwIFBNIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T12:00:00.000Z" } }, { "_sort": "2001-02-03T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1126", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAwOjAwIFBNIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T10:30:00.000Z" } }, { "_sort": "2001-02-03T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1127", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAwOjAwIFBNIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T17:00:00.000Z" } }, { "_sort": "2001-02-03T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1128", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAwOjAwIFBNICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T10:30:00.000Z" } }, { "_sort": "2001-02-03T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1129", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAxMzowMCBQTSJ9" }, "error": "invalid_cursor" }, { "name": "case-1130", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAxMzowMCBQTSBHTVQifQ" }, "error": "invalid_cursor" }, { "name": "case-1131", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAxMzowMCBQTSBVVEMrMDE6MzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1132", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAxMzowMCBQTSBFU1QifQ" }, "error": "invalid_cursor" }, { "name": "case-1133", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyAxMzowMCBQTSArMDEzMCJ9" }, "error": "invalid_cursor" }, { "name": "case-1134", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T00:00:00.000Z" } }, { "_sort": "2003-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1135", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T00:00:00.000Z" } }, { "_sort": "2003-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1136", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-01T22:30:00.000Z" } }, { "_sort": "2003-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1137", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T05:00:00.000Z" } }, { "_sort": "2003-01-02T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1138", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgKzAxMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1139", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMTI6MzQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T12:34:00.000Z" } }, { "_sort": "2003-01-02T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1140", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMTI6MzQgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T12:34:00.000Z" } }, { "_sort": "2003-01-02T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1141", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMTI6MzQgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T11:04:00.000Z" } }, { "_sort": "2003-01-02T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1142", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMTI6MzQgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T17:34:00.000Z" } }, { "_sort": "2003-01-02T17:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T17:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1143", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMTI6MzQgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T11:04:00.000Z" } }, { "_sort": "2003-01-02T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1144", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMTI6MzQ6NTYuMDAwMTIzIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T12:34:56.000Z" } }, { "_sort": "2003-01-02T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1145", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMTI6MzQ6NTYuMDAwMTIzIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T12:34:56.000Z" } }, { "_sort": "2003-01-02T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1146", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMTI6MzQ6NTYuMDAwMTIzIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T11:04:56.000Z" } }, { "_sort": "2003-01-02T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1147", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMTI6MzQ6NTYuMDAwMTIzIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T17:34:56.000Z" } }, { "_sort": "2003-01-02T17:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T17:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1148", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMTI6MzQ6NTYuMDAwMTIzICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T11:04:56.000Z" } }, { "_sort": "2003-01-02T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1149", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T12:34:56.999Z" } }, { "_sort": "2003-01-02T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1150", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T12:34:56.999Z" } }, { "_sort": "2003-01-02T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1151", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T11:04:56.999Z" } }, { "_sort": "2003-01-02T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1152", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T17:34:56.999Z" } }, { "_sort": "2003-01-02T17:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T17:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1153", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5ICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T11:04:56.999Z" } }, { "_sort": "2003-01-02T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1154", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMjQ6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-03T00:00:00.000Z" } }, { "_sort": "2003-01-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1155", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMjQ6MDAgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-03T00:00:00.000Z" } }, { "_sort": "2003-01-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1156", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMjQ6MDAgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T22:30:00.000Z" } }, { "_sort": "2003-01-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1157", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMjQ6MDAgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-03T05:00:00.000Z" } }, { "_sort": "2003-01-03T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-03T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1158", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMjQ6MDAgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T22:30:00.000Z" } }, { "_sort": "2003-01-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1159", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMTI6MDAgQU0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T00:00:00.000Z" } }, { "_sort": "2003-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1160", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMTI6MDAgQU0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T00:00:00.000Z" } }, { "_sort": "2003-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1161", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMTI6MDAgQU0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-01T22:30:00.000Z" } }, { "_sort": "2003-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1162", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMTI6MDAgQU0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T05:00:00.000Z" } }, { "_sort": "2003-01-02T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1163", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMTI6MDAgQU0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-01T22:30:00.000Z" } }, { "_sort": "2003-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1164", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMTI6MDAgUE0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T12:00:00.000Z" } }, { "_sort": "2003-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1165", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMTI6MDAgUE0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T12:00:00.000Z" } }, { "_sort": "2003-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1166", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMTI6MDAgUE0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T10:30:00.000Z" } }, { "_sort": "2003-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1167", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMTI6MDAgUE0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T17:00:00.000Z" } }, { "_sort": "2003-01-02T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1168", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMTI6MDAgUE0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T10:30:00.000Z" } }, { "_sort": "2003-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1169", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMDowMCBQTSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T12:00:00.000Z" } }, { "_sort": "2003-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1170", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMDowMCBQTSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T12:00:00.000Z" } }, { "_sort": "2003-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1171", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMDowMCBQTSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T10:30:00.000Z" } }, { "_sort": "2003-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1172", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMDowMCBQTSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T17:00:00.000Z" } }, { "_sort": "2003-01-02T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1173", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMDowMCBQTSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2003-01-02T10:30:00.000Z" } }, { "_sort": "2003-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1174", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMTM6MDAgUE0ifQ" }, "error": "invalid_cursor" }, { "name": "case-1175", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMTM6MDAgUE0gR01UIn0" }, "error": "invalid_cursor" }, { "name": "case-1176", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMTM6MDAgUE0gVVRDKzAxOjMwIn0" }, "error": "invalid_cursor" }, { "name": "case-1177", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMTM6MDAgUE0gRVNUIn0" }, "error": "invalid_cursor" }, { "name": "case-1178", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMDEvMDIvMDMgMTM6MDAgUE0gKzAxMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1179", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T00:00:00.000Z" } }, { "_sort": "2032-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1180", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T00:00:00.000Z" } }, { "_sort": "2032-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1181", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-01T22:30:00.000Z" } }, { "_sort": "2032-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1182", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T05:00:00.000Z" } }, { "_sort": "2032-01-02T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1183", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgKzAxMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1184", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMTI6MzQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T12:34:00.000Z" } }, { "_sort": "2032-01-02T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1185", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMTI6MzQgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T12:34:00.000Z" } }, { "_sort": "2032-01-02T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1186", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMTI6MzQgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T11:04:00.000Z" } }, { "_sort": "2032-01-02T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1187", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMTI6MzQgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T17:34:00.000Z" } }, { "_sort": "2032-01-02T17:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T17:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1188", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMTI6MzQgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T11:04:00.000Z" } }, { "_sort": "2032-01-02T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1189", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMTI6MzQ6NTYuMDAwMTIzIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T12:34:56.000Z" } }, { "_sort": "2032-01-02T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1190", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMTI6MzQ6NTYuMDAwMTIzIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T12:34:56.000Z" } }, { "_sort": "2032-01-02T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1191", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMTI6MzQ6NTYuMDAwMTIzIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T11:04:56.000Z" } }, { "_sort": "2032-01-02T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1192", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMTI6MzQ6NTYuMDAwMTIzIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T17:34:56.000Z" } }, { "_sort": "2032-01-02T17:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T17:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1193", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMTI6MzQ6NTYuMDAwMTIzICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T11:04:56.000Z" } }, { "_sort": "2032-01-02T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1194", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T12:34:56.999Z" } }, { "_sort": "2032-01-02T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1195", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T12:34:56.999Z" } }, { "_sort": "2032-01-02T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1196", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T11:04:56.999Z" } }, { "_sort": "2032-01-02T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1197", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T17:34:56.999Z" } }, { "_sort": "2032-01-02T17:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T17:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1198", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5ICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T11:04:56.999Z" } }, { "_sort": "2032-01-02T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1199", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMjQ6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-03T00:00:00.000Z" } }, { "_sort": "2032-01-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1200", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMjQ6MDAgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-03T00:00:00.000Z" } }, { "_sort": "2032-01-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1201", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMjQ6MDAgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T22:30:00.000Z" } }, { "_sort": "2032-01-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1202", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMjQ6MDAgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-03T05:00:00.000Z" } }, { "_sort": "2032-01-03T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-03T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1203", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMjQ6MDAgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T22:30:00.000Z" } }, { "_sort": "2032-01-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1204", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMTI6MDAgQU0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T00:00:00.000Z" } }, { "_sort": "2032-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1205", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMTI6MDAgQU0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T00:00:00.000Z" } }, { "_sort": "2032-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1206", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMTI6MDAgQU0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-01T22:30:00.000Z" } }, { "_sort": "2032-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1207", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMTI6MDAgQU0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T05:00:00.000Z" } }, { "_sort": "2032-01-02T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1208", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMTI6MDAgQU0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-01T22:30:00.000Z" } }, { "_sort": "2032-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1209", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMTI6MDAgUE0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T12:00:00.000Z" } }, { "_sort": "2032-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1210", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMTI6MDAgUE0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T12:00:00.000Z" } }, { "_sort": "2032-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1211", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMTI6MDAgUE0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T10:30:00.000Z" } }, { "_sort": "2032-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1212", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMTI6MDAgUE0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T17:00:00.000Z" } }, { "_sort": "2032-01-02T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1213", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMTI6MDAgUE0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T10:30:00.000Z" } }, { "_sort": "2032-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1214", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMDowMCBQTSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T12:00:00.000Z" } }, { "_sort": "2032-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1215", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMDowMCBQTSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T12:00:00.000Z" } }, { "_sort": "2032-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1216", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMDowMCBQTSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T10:30:00.000Z" } }, { "_sort": "2032-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1217", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMDowMCBQTSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T17:00:00.000Z" } }, { "_sort": "2032-01-02T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1218", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMDowMCBQTSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2032-01-02T10:30:00.000Z" } }, { "_sort": "2032-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1219", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMTM6MDAgUE0ifQ" }, "error": "invalid_cursor" }, { "name": "case-1220", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMTM6MDAgUE0gR01UIn0" }, "error": "invalid_cursor" }, { "name": "case-1221", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMTM6MDAgUE0gVVRDKzAxOjMwIn0" }, "error": "invalid_cursor" }, { "name": "case-1222", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMTM6MDAgUE0gRVNUIn0" }, "error": "invalid_cursor" }, { "name": "case-1223", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMzIvMDEvMDIgMTM6MDAgUE0gKzAxMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1224", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T00:00:00.000Z" } }, { "_sort": "2001-01-05T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1225", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T00:00:00.000Z" } }, { "_sort": "2001-01-05T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1226", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-04T22:30:00.000Z" } }, { "_sort": "2001-01-04T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-04T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1227", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T05:00:00.000Z" } }, { "_sort": "2001-01-05T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1228", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgKzAxMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1229", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMTI6MzQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T12:34:00.000Z" } }, { "_sort": "2001-01-05T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1230", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMTI6MzQgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T12:34:00.000Z" } }, { "_sort": "2001-01-05T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1231", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMTI6MzQgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T11:04:00.000Z" } }, { "_sort": "2001-01-05T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1232", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMTI6MzQgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T17:34:00.000Z" } }, { "_sort": "2001-01-05T17:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T17:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1233", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMTI6MzQgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T11:04:00.000Z" } }, { "_sort": "2001-01-05T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1234", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMTI6MzQ6NTYuMDAwMTIzIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T12:34:56.000Z" } }, { "_sort": "2001-01-05T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1235", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMTI6MzQ6NTYuMDAwMTIzIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T12:34:56.000Z" } }, { "_sort": "2001-01-05T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1236", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMTI6MzQ6NTYuMDAwMTIzIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T11:04:56.000Z" } }, { "_sort": "2001-01-05T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1237", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMTI6MzQ6NTYuMDAwMTIzIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T17:34:56.000Z" } }, { "_sort": "2001-01-05T17:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T17:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1238", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMTI6MzQ6NTYuMDAwMTIzICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T11:04:56.000Z" } }, { "_sort": "2001-01-05T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1239", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T12:34:56.999Z" } }, { "_sort": "2001-01-05T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1240", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T12:34:56.999Z" } }, { "_sort": "2001-01-05T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1241", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T11:04:56.999Z" } }, { "_sort": "2001-01-05T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1242", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T17:34:56.999Z" } }, { "_sort": "2001-01-05T17:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T17:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1243", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5ICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T11:04:56.999Z" } }, { "_sort": "2001-01-05T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1244", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMjQ6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-06T00:00:00.000Z" } }, { "_sort": "2001-01-06T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-06T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1245", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMjQ6MDAgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-06T00:00:00.000Z" } }, { "_sort": "2001-01-06T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-06T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1246", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMjQ6MDAgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T22:30:00.000Z" } }, { "_sort": "2001-01-05T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1247", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMjQ6MDAgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-06T05:00:00.000Z" } }, { "_sort": "2001-01-06T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-06T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1248", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMjQ6MDAgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T22:30:00.000Z" } }, { "_sort": "2001-01-05T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1249", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMTI6MDAgQU0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T00:00:00.000Z" } }, { "_sort": "2001-01-05T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1250", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMTI6MDAgQU0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T00:00:00.000Z" } }, { "_sort": "2001-01-05T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1251", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMTI6MDAgQU0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-04T22:30:00.000Z" } }, { "_sort": "2001-01-04T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-04T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1252", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMTI6MDAgQU0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T05:00:00.000Z" } }, { "_sort": "2001-01-05T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1253", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMTI6MDAgQU0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-04T22:30:00.000Z" } }, { "_sort": "2001-01-04T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-04T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1254", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMTI6MDAgUE0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T12:00:00.000Z" } }, { "_sort": "2001-01-05T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1255", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMTI6MDAgUE0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T12:00:00.000Z" } }, { "_sort": "2001-01-05T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1256", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMTI6MDAgUE0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T10:30:00.000Z" } }, { "_sort": "2001-01-05T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1257", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMTI6MDAgUE0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T17:00:00.000Z" } }, { "_sort": "2001-01-05T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1258", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMTI6MDAgUE0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T10:30:00.000Z" } }, { "_sort": "2001-01-05T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1259", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMDowMCBQTSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T12:00:00.000Z" } }, { "_sort": "2001-01-05T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1260", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMDowMCBQTSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T12:00:00.000Z" } }, { "_sort": "2001-01-05T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1261", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMDowMCBQTSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T10:30:00.000Z" } }, { "_sort": "2001-01-05T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1262", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMDowMCBQTSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T17:00:00.000Z" } }, { "_sort": "2001-01-05T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1263", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMDowMCBQTSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-01-05T10:30:00.000Z" } }, { "_sort": "2001-01-05T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1264", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMTM6MDAgUE0ifQ" }, "error": "invalid_cursor" }, { "name": "case-1265", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMTM6MDAgUE0gR01UIn0" }, "error": "invalid_cursor" }, { "name": "case-1266", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMTM6MDAgUE0gVVRDKzAxOjMwIn0" }, "error": "invalid_cursor" }, { "name": "case-1267", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMTM6MDAgUE0gRVNUIn0" }, "error": "invalid_cursor" }, { "name": "case-1268", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiSmFuIDUgMTM6MDAgUE0gKzAxMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1269", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T00:00:00.000Z" } }, { "_sort": "2049-03-05T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1270", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T00:00:00.000Z" } }, { "_sort": "2049-03-05T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1271", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-04T22:30:00.000Z" } }, { "_sort": "2049-03-04T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-04T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1272", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T05:00:00.000Z" } }, { "_sort": "2049-03-05T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1273", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSArMDEzMCJ9" }, "error": "invalid_cursor" }, { "name": "case-1274", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAxMjozNCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T12:34:00.000Z" } }, { "_sort": "2049-03-05T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1275", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAxMjozNCBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T12:34:00.000Z" } }, { "_sort": "2049-03-05T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1276", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAxMjozNCBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T11:04:00.000Z" } }, { "_sort": "2049-03-05T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1277", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAxMjozNCBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T17:34:00.000Z" } }, { "_sort": "2049-03-05T17:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T17:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1278", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAxMjozNCArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T11:04:00.000Z" } }, { "_sort": "2049-03-05T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1279", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAxMjozNDo1Ni4wMDAxMjMifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T12:34:56.000Z" } }, { "_sort": "2049-03-05T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1280", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAxMjozNDo1Ni4wMDAxMjMgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T12:34:56.000Z" } }, { "_sort": "2049-03-05T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1281", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAxMjozNDo1Ni4wMDAxMjMgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T11:04:56.000Z" } }, { "_sort": "2049-03-05T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1282", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAxMjozNDo1Ni4wMDAxMjMgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T17:34:56.000Z" } }, { "_sort": "2049-03-05T17:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T17:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1283", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAxMjozNDo1Ni4wMDAxMjMgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T11:04:56.000Z" } }, { "_sort": "2049-03-05T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1284", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAxMjozNDo1Ni45OTk5OTk5OTk5OTkifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T12:34:56.999Z" } }, { "_sort": "2049-03-05T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1285", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAxMjozNDo1Ni45OTk5OTk5OTk5OTkgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T12:34:56.999Z" } }, { "_sort": "2049-03-05T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1286", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAxMjozNDo1Ni45OTk5OTk5OTk5OTkgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T11:04:56.999Z" } }, { "_sort": "2049-03-05T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1287", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAxMjozNDo1Ni45OTk5OTk5OTk5OTkgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T17:34:56.999Z" } }, { "_sort": "2049-03-05T17:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T17:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1288", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAxMjozNDo1Ni45OTk5OTk5OTk5OTkgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T11:04:56.999Z" } }, { "_sort": "2049-03-05T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1289", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAyNDowMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-06T00:00:00.000Z" } }, { "_sort": "2049-03-06T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-06T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1290", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAyNDowMCBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-06T00:00:00.000Z" } }, { "_sort": "2049-03-06T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-06T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1291", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAyNDowMCBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T22:30:00.000Z" } }, { "_sort": "2049-03-05T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1292", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAyNDowMCBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-06T05:00:00.000Z" } }, { "_sort": "2049-03-06T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-06T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1293", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAyNDowMCArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T22:30:00.000Z" } }, { "_sort": "2049-03-05T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1294", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAxMjowMCBBTSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T00:00:00.000Z" } }, { "_sort": "2049-03-05T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1295", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAxMjowMCBBTSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T00:00:00.000Z" } }, { "_sort": "2049-03-05T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1296", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAxMjowMCBBTSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-04T22:30:00.000Z" } }, { "_sort": "2049-03-04T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-04T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1297", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAxMjowMCBBTSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T05:00:00.000Z" } }, { "_sort": "2049-03-05T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1298", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAxMjowMCBBTSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-04T22:30:00.000Z" } }, { "_sort": "2049-03-04T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-04T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1299", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAxMjowMCBQTSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T12:00:00.000Z" } }, { "_sort": "2049-03-05T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1300", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAxMjowMCBQTSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T12:00:00.000Z" } }, { "_sort": "2049-03-05T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1301", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAxMjowMCBQTSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T10:30:00.000Z" } }, { "_sort": "2049-03-05T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1302", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAxMjowMCBQTSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T17:00:00.000Z" } }, { "_sort": "2049-03-05T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1303", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAxMjowMCBQTSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T10:30:00.000Z" } }, { "_sort": "2049-03-05T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1304", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAwOjAwIFBNIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T12:00:00.000Z" } }, { "_sort": "2049-03-05T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1305", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAwOjAwIFBNIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T12:00:00.000Z" } }, { "_sort": "2049-03-05T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1306", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAwOjAwIFBNIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T10:30:00.000Z" } }, { "_sort": "2049-03-05T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1307", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAwOjAwIFBNIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T17:00:00.000Z" } }, { "_sort": "2049-03-05T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1308", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAwOjAwIFBNICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2049-03-05T10:30:00.000Z" } }, { "_sort": "2049-03-05T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1309", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAxMzowMCBQTSJ9" }, "error": "invalid_cursor" }, { "name": "case-1310", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAxMzowMCBQTSBHTVQifQ" }, "error": "invalid_cursor" }, { "name": "case-1311", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAxMzowMCBQTSBVVEMrMDE6MzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1312", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAxMzowMCBQTSBFU1QifQ" }, "error": "invalid_cursor" }, { "name": "case-1313", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiNSBNYXJjaCA0OSAxMzowMCBQTSArMDEzMCJ9" }, "error": "invalid_cursor" }, { "name": "case-1314", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T00:00:00.000Z" } }, { "_sort": "1999-12-31T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1315", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T00:00:00.000Z" } }, { "_sort": "1999-12-31T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1316", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-30T22:30:00.000Z" } }, { "_sort": "1999-12-30T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-30T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1317", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T05:00:00.000Z" } }, { "_sort": "1999-12-31T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1318", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgKzAxMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1319", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMTI6MzQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T12:34:00.000Z" } }, { "_sort": "1999-12-31T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1320", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMTI6MzQgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T12:34:00.000Z" } }, { "_sort": "1999-12-31T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1321", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMTI6MzQgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T11:04:00.000Z" } }, { "_sort": "1999-12-31T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1322", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMTI6MzQgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T17:34:00.000Z" } }, { "_sort": "1999-12-31T17:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T17:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1323", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMTI6MzQgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T11:04:00.000Z" } }, { "_sort": "1999-12-31T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1324", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMTI6MzQ6NTYuMDAwMTIzIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T12:34:56.000Z" } }, { "_sort": "1999-12-31T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1325", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMTI6MzQ6NTYuMDAwMTIzIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T12:34:56.000Z" } }, { "_sort": "1999-12-31T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1326", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMTI6MzQ6NTYuMDAwMTIzIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T11:04:56.000Z" } }, { "_sort": "1999-12-31T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1327", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMTI6MzQ6NTYuMDAwMTIzIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T17:34:56.000Z" } }, { "_sort": "1999-12-31T17:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T17:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1328", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMTI6MzQ6NTYuMDAwMTIzICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T11:04:56.000Z" } }, { "_sort": "1999-12-31T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1329", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T12:34:56.999Z" } }, { "_sort": "1999-12-31T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1330", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T12:34:56.999Z" } }, { "_sort": "1999-12-31T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1331", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T11:04:56.999Z" } }, { "_sort": "1999-12-31T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1332", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T17:34:56.999Z" } }, { "_sort": "1999-12-31T17:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T17:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1333", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5ICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T11:04:56.999Z" } }, { "_sort": "1999-12-31T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1334", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMjQ6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2000-01-01T00:00:00.000Z" } }, { "_sort": "2000-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2000-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1335", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMjQ6MDAgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2000-01-01T00:00:00.000Z" } }, { "_sort": "2000-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2000-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1336", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMjQ6MDAgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T22:30:00.000Z" } }, { "_sort": "1999-12-31T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1337", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMjQ6MDAgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2000-01-01T05:00:00.000Z" } }, { "_sort": "2000-01-01T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2000-01-01T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1338", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMjQ6MDAgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T22:30:00.000Z" } }, { "_sort": "1999-12-31T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1339", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMTI6MDAgQU0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T00:00:00.000Z" } }, { "_sort": "1999-12-31T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1340", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMTI6MDAgQU0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T00:00:00.000Z" } }, { "_sort": "1999-12-31T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1341", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMTI6MDAgQU0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-30T22:30:00.000Z" } }, { "_sort": "1999-12-30T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-30T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1342", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMTI6MDAgQU0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T05:00:00.000Z" } }, { "_sort": "1999-12-31T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1343", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMTI6MDAgQU0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-30T22:30:00.000Z" } }, { "_sort": "1999-12-30T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-30T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1344", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMTI6MDAgUE0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T12:00:00.000Z" } }, { "_sort": "1999-12-31T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1345", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMTI6MDAgUE0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T12:00:00.000Z" } }, { "_sort": "1999-12-31T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1346", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMTI6MDAgUE0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T10:30:00.000Z" } }, { "_sort": "1999-12-31T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1347", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMTI6MDAgUE0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T17:00:00.000Z" } }, { "_sort": "1999-12-31T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1348", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMTI6MDAgUE0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T10:30:00.000Z" } }, { "_sort": "1999-12-31T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1349", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMDowMCBQTSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T12:00:00.000Z" } }, { "_sort": "1999-12-31T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1350", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMDowMCBQTSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T12:00:00.000Z" } }, { "_sort": "1999-12-31T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1351", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMDowMCBQTSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T10:30:00.000Z" } }, { "_sort": "1999-12-31T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1352", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMDowMCBQTSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T17:00:00.000Z" } }, { "_sort": "1999-12-31T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1353", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMDowMCBQTSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "1999-12-31T10:30:00.000Z" } }, { "_sort": "1999-12-31T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1354", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMTM6MDAgUE0ifQ" }, "error": "invalid_cursor" }, { "name": "case-1355", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMTM6MDAgUE0gR01UIn0" }, "error": "invalid_cursor" }, { "name": "case-1356", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMTM6MDAgUE0gVVRDKzAxOjMwIn0" }, "error": "invalid_cursor" }, { "name": "case-1357", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMTM6MDAgUE0gRVNUIn0" }, "error": "invalid_cursor" }, { "name": "case-1358", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiRGVjZW1iZXIgMzEgOTkgMTM6MDAgUE0gKzAxMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1359", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T00:00:00.000Z" } }, { "_sort": "2024-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1360", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T00:00:00.000Z" } }, { "_sort": "2024-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1361", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-01T22:30:00.000Z" } }, { "_sort": "2024-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1362", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T05:00:00.000Z" } }, { "_sort": "2024-01-02T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1363", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgKzAxMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1364", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMTI6MzQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T12:34:00.000Z" } }, { "_sort": "2024-01-02T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1365", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMTI6MzQgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T12:34:00.000Z" } }, { "_sort": "2024-01-02T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1366", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMTI6MzQgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T11:04:00.000Z" } }, { "_sort": "2024-01-02T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1367", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMTI6MzQgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T17:34:00.000Z" } }, { "_sort": "2024-01-02T17:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T17:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1368", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMTI6MzQgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T11:04:00.000Z" } }, { "_sort": "2024-01-02T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1369", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMTI6MzQ6NTYuMDAwMTIzIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T12:34:56.000Z" } }, { "_sort": "2024-01-02T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1370", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMTI6MzQ6NTYuMDAwMTIzIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T12:34:56.000Z" } }, { "_sort": "2024-01-02T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1371", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMTI6MzQ6NTYuMDAwMTIzIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T11:04:56.000Z" } }, { "_sort": "2024-01-02T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1372", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMTI6MzQ6NTYuMDAwMTIzIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T17:34:56.000Z" } }, { "_sort": "2024-01-02T17:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T17:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1373", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMTI6MzQ6NTYuMDAwMTIzICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T11:04:56.000Z" } }, { "_sort": "2024-01-02T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1374", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T12:34:56.999Z" } }, { "_sort": "2024-01-02T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1375", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T12:34:56.999Z" } }, { "_sort": "2024-01-02T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1376", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T11:04:56.999Z" } }, { "_sort": "2024-01-02T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1377", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T17:34:56.999Z" } }, { "_sort": "2024-01-02T17:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T17:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1378", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5ICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T11:04:56.999Z" } }, { "_sort": "2024-01-02T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1379", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMjQ6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-03T00:00:00.000Z" } }, { "_sort": "2024-01-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1380", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMjQ6MDAgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-03T00:00:00.000Z" } }, { "_sort": "2024-01-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1381", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMjQ6MDAgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T22:30:00.000Z" } }, { "_sort": "2024-01-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1382", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMjQ6MDAgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-03T05:00:00.000Z" } }, { "_sort": "2024-01-03T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-03T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1383", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMjQ6MDAgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T22:30:00.000Z" } }, { "_sort": "2024-01-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1384", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMTI6MDAgQU0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T00:00:00.000Z" } }, { "_sort": "2024-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1385", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMTI6MDAgQU0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T00:00:00.000Z" } }, { "_sort": "2024-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1386", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMTI6MDAgQU0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-01T22:30:00.000Z" } }, { "_sort": "2024-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1387", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMTI6MDAgQU0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T05:00:00.000Z" } }, { "_sort": "2024-01-02T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1388", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMTI6MDAgQU0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-01T22:30:00.000Z" } }, { "_sort": "2024-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1389", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMTI6MDAgUE0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T12:00:00.000Z" } }, { "_sort": "2024-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1390", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMTI6MDAgUE0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T12:00:00.000Z" } }, { "_sort": "2024-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1391", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMTI6MDAgUE0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T10:30:00.000Z" } }, { "_sort": "2024-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1392", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMTI6MDAgUE0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T17:00:00.000Z" } }, { "_sort": "2024-01-02T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1393", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMTI6MDAgUE0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T10:30:00.000Z" } }, { "_sort": "2024-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1394", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMDowMCBQTSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T12:00:00.000Z" } }, { "_sort": "2024-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1395", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMDowMCBQTSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T12:00:00.000Z" } }, { "_sort": "2024-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1396", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMDowMCBQTSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T10:30:00.000Z" } }, { "_sort": "2024-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1397", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMDowMCBQTSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T17:00:00.000Z" } }, { "_sort": "2024-01-02T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1398", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMDowMCBQTSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-02T10:30:00.000Z" } }, { "_sort": "2024-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1399", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMTM6MDAgUE0ifQ" }, "error": "invalid_cursor" }, { "name": "case-1400", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMTM6MDAgUE0gR01UIn0" }, "error": "invalid_cursor" }, { "name": "case-1401", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMTM6MDAgUE0gVVRDKzAxOjMwIn0" }, "error": "invalid_cursor" }, { "name": "case-1402", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMTM6MDAgUE0gRVNUIn0" }, "error": "invalid_cursor" }, { "name": "case-1403", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNCwxLDIgMTM6MDAgUE0gKzAxMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1404", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMS0wMSAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1405", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMS0wMVx0In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1406", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMS0wMVxuIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1407", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMS0wMe-7vyJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1408", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMS0wMSAoaWdub3JlZCkifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1409", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMS0wMSBnYXJiYWdlIn0" }, "error": "invalid_cursor" }, { "name": "case-1410", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMS0wMVx1MDAwMGlnbm9yZWQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1411", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjpbIjIwMjQtMDItMjkiXX0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T00:00:00.000Z" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1412", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjpbIjIwMjQtMDItMjkiXX0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T00:00:00.000Z" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1413", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjpbIjIwMjQtMDItMjkiLCIyMDI0LTAzLTAxIl19" }, "error": "invalid_cursor" }, { "name": "case-1414", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjpbIiJdfQ" }, "error": "invalid_cursor" }, { "name": "case-1415", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjp7IngiOiJ4In19" }, "error": "invalid_cursor" }, { "name": "case-1416", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjp7InRvU3RyaW5nIjoieCJ9fQ" }, "error": "invalid_cursor" }, { "name": "case-1417", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiaW52YWxpZCJ9" }, "error": "invalid_cursor" }, { "name": "case-1418", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjp7InRvU3RyaW5nIjoieCJ9fQ" }, "error": "invalid_cursor" }, { "name": "case-1419", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiTWFyY2ggMSAyMDI0In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1420", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0zMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1421", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMi0yOVQyNDowMDowMFoifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1422", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiLTAwMDAwMC0wMi0wMyJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2001-02-03T00:00:00.000Z" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1423", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjpbIjIwMjQiLCIzIiwiMSJdfQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1424", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMy0wMVQwMTowMDowMCswMjowMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-02-29T23:00:00.000Z" } }, { "_sort": "2024-02-29T23:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T23:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1425", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMy0wMXQwMDowMHoifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1426", "query": { "sort": "-lastView", "cursor": "eyJzb3J0IjoiLWxhc3RWaWV3IiwidHlwZSI6InJlcG8iLCJpZCI6IjExMTExMTExMTExMTExMTExMTExMTExMSIsInZhbHVlIjoiMjAyNC0wMy0wMVQwMDowMFpcdTAwMDBpZ25vcmVkIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$lastView", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$lt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1427", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IiJ9" }, "error": "invalid_cursor" }, { "name": "case-1428", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6ImludmFsaWQifQ" }, "error": "invalid_cursor" }, { "name": "case-1429", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "0000-01-01T00:00:00.000Z" } }, { "_sort": "0000-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "0000-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1430", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "0001-01-01T00:00:00.000Z" } }, { "_sort": "0001-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "0001-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1431", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1432", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDIifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-01T00:00:00.000Z" } }, { "_sort": "2024-02-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1433", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjkifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T00:00:00.000Z" } }, { "_sort": "2023-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1434", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1435", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzEifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-02T00:00:00.000Z" } }, { "_sort": "2024-03-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1436", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzIifQ" }, "error": "invalid_cursor" }, { "name": "case-1437", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDAtMDEifQ" }, "error": "invalid_cursor" }, { "name": "case-1438", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMTMtMDEifQ" }, "error": "invalid_cursor" }, { "name": "case-1439", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDAifQ" }, "error": "invalid_cursor" }, { "name": "case-1440", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDEifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1441", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjRUMDA6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1442", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDJUMDA6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-01T00:00:00.000Z" } }, { "_sort": "2024-02-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1443", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDF0MDA6MDB6In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1444", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IiAyMDI0LTAxLTAxICJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1445", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDFUMDA6MDBaICJ9" }, "error": "invalid_cursor" }, { "name": "case-1446", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDFUMDA6MDBaXHUwMDAwaWdub3JlZCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1447", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IiswMTAwMDAtMDEtMDEifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "+010000-01-01T00:00:00.000Z" } }, { "_sort": "+010000-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "+010000-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1448", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDEtMDEtMDEifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "-000001-01-01T00:00:00.000Z" } }, { "_sort": "-000001-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "-000001-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1449", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDEtMDEifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T00:00:00.000Z" } }, { "_sort": "2001-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1450", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IisyNzU3NjAtMDktMTMifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "+275760-09-13T00:00:00.000Z" } }, { "_sort": "+275760-09-13T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "+275760-09-13T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1451", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IisyNzU3NjAtMDktMTQifQ" }, "error": "invalid_cursor" }, { "name": "case-1452", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0yNzE4MjEtMDQtMjAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "-271821-04-20T00:00:00.000Z" } }, { "_sort": "-271821-04-20T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "-271821-04-20T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1453", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0yNzE4MjEtMDQtMTkifQ" }, "error": "invalid_cursor" }, { "name": "case-1454", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMDA6MDBaIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T00:00:00.000Z" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1455", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMDA6MDArMDI6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-28T21:30:00.000Z" } }, { "_sort": "2024-02-28T21:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-28T21:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1456", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMDA6MDAtMDMzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T03:30:00.000Z" } }, { "_sort": "2024-02-29T03:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T03:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1457", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMDA6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T00:00:00.000Z" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1458", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NTZaIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:34:56.000Z" } }, { "_sort": "2024-02-29T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1459", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NTYrMDI6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T10:04:56.000Z" } }, { "_sort": "2024-02-29T10:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T10:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1460", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NTYtMDMzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T16:04:56.000Z" } }, { "_sort": "2024-02-29T16:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T16:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1461", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NTYifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:34:56.000Z" } }, { "_sort": "2024-02-29T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1462", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NTYuMVoifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:34:56.100Z" } }, { "_sort": "2024-02-29T12:34:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1463", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NTYuMSswMjozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T10:04:56.100Z" } }, { "_sort": "2024-02-29T10:04:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T10:04:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1464", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NTYuMS0wMzMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T16:04:56.100Z" } }, { "_sort": "2024-02-29T16:04:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T16:04:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1465", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NTYuMSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:34:56.100Z" } }, { "_sort": "2024-02-29T12:34:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1466", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NTYuMTIzNDU2Nzg5WiJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:34:56.123Z" } }, { "_sort": "2024-02-29T12:34:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1467", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NTYuMTIzNDU2Nzg5KzAyOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T10:04:56.123Z" } }, { "_sort": "2024-02-29T10:04:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T10:04:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1468", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NTYuMTIzNDU2Nzg5LTAzMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T16:04:56.123Z" } }, { "_sort": "2024-02-29T16:04:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T16:04:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1469", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NTYuMTIzNDU2Nzg5In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:34:56.123Z" } }, { "_sort": "2024-02-29T12:34:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1470", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMjQ6MDBaIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1471", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMjQ6MDArMDI6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T21:30:00.000Z" } }, { "_sort": "2024-02-29T21:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T21:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1472", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMjQ6MDAtMDMzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T03:30:00.000Z" } }, { "_sort": "2024-03-01T03:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T03:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1473", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMjQ6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1474", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMjQ6MDA6MDAuMDAxWiJ9" }, "error": "invalid_cursor" }, { "name": "case-1475", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMjQ6MDA6MDAuMDAxKzAyOjMwIn0" }, "error": "invalid_cursor" }, { "name": "case-1476", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMjQ6MDA6MDAuMDAxLTAzMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1477", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMjQ6MDA6MDAuMDAxIn0" }, "error": "invalid_cursor" }, { "name": "case-1478", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMjU6MDBaIn0" }, "error": "invalid_cursor" }, { "name": "case-1479", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMjU6MDArMDI6MzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1480", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMjU6MDAtMDMzMCJ9" }, "error": "invalid_cursor" }, { "name": "case-1481", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMjU6MDAifQ" }, "error": "invalid_cursor" }, { "name": "case-1482", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6NjBaIn0" }, "error": "invalid_cursor" }, { "name": "case-1483", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6NjArMDI6MzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1484", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6NjAtMDMzMCJ9" }, "error": "invalid_cursor" }, { "name": "case-1485", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6NjAifQ" }, "error": "invalid_cursor" }, { "name": "case-1486", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NjBaIn0" }, "error": "invalid_cursor" }, { "name": "case-1487", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NjArMDI6MzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1488", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NjAtMDMzMCJ9" }, "error": "invalid_cursor" }, { "name": "case-1489", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMTI6MzQ6NjAifQ" }, "error": "invalid_cursor" }, { "name": "case-1490", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMDA6MDBaIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T00:00:00.000Z" } }, { "_sort": "2023-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1491", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMDA6MDArMDI6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-02-28T21:30:00.000Z" } }, { "_sort": "2023-02-28T21:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-02-28T21:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1492", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMDA6MDAtMDMzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T03:30:00.000Z" } }, { "_sort": "2023-03-01T03:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T03:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1493", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMDA6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T00:00:00.000Z" } }, { "_sort": "2023-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1494", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NTZaIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T12:34:56.000Z" } }, { "_sort": "2023-03-01T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1495", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NTYrMDI6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T10:04:56.000Z" } }, { "_sort": "2023-03-01T10:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T10:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1496", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NTYtMDMzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T16:04:56.000Z" } }, { "_sort": "2023-03-01T16:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T16:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1497", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NTYifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T12:34:56.000Z" } }, { "_sort": "2023-03-01T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1498", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NTYuMVoifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T12:34:56.100Z" } }, { "_sort": "2023-03-01T12:34:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T12:34:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1499", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NTYuMSswMjozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T10:04:56.100Z" } }, { "_sort": "2023-03-01T10:04:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T10:04:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1500", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NTYuMS0wMzMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T16:04:56.100Z" } }, { "_sort": "2023-03-01T16:04:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T16:04:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1501", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NTYuMSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T12:34:56.100Z" } }, { "_sort": "2023-03-01T12:34:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T12:34:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1502", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NTYuMTIzNDU2Nzg5WiJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T12:34:56.123Z" } }, { "_sort": "2023-03-01T12:34:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T12:34:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1503", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NTYuMTIzNDU2Nzg5KzAyOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T10:04:56.123Z" } }, { "_sort": "2023-03-01T10:04:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T10:04:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1504", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NTYuMTIzNDU2Nzg5LTAzMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T16:04:56.123Z" } }, { "_sort": "2023-03-01T16:04:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T16:04:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1505", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NTYuMTIzNDU2Nzg5In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T12:34:56.123Z" } }, { "_sort": "2023-03-01T12:34:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T12:34:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1506", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMjQ6MDBaIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T00:00:00.000Z" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1507", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMjQ6MDArMDI6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T21:30:00.000Z" } }, { "_sort": "2023-03-01T21:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T21:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1508", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMjQ6MDAtMDMzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T03:30:00.000Z" } }, { "_sort": "2023-03-02T03:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T03:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1509", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMjQ6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T00:00:00.000Z" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1510", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMjQ6MDA6MDAuMDAxWiJ9" }, "error": "invalid_cursor" }, { "name": "case-1511", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMjQ6MDA6MDAuMDAxKzAyOjMwIn0" }, "error": "invalid_cursor" }, { "name": "case-1512", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMjQ6MDA6MDAuMDAxLTAzMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1513", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMjQ6MDA6MDAuMDAxIn0" }, "error": "invalid_cursor" }, { "name": "case-1514", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMjU6MDBaIn0" }, "error": "invalid_cursor" }, { "name": "case-1515", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMjU6MDArMDI6MzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1516", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMjU6MDAtMDMzMCJ9" }, "error": "invalid_cursor" }, { "name": "case-1517", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMjU6MDAifQ" }, "error": "invalid_cursor" }, { "name": "case-1518", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6NjBaIn0" }, "error": "invalid_cursor" }, { "name": "case-1519", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6NjArMDI6MzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1520", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6NjAtMDMzMCJ9" }, "error": "invalid_cursor" }, { "name": "case-1521", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6NjAifQ" }, "error": "invalid_cursor" }, { "name": "case-1522", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NjBaIn0" }, "error": "invalid_cursor" }, { "name": "case-1523", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NjArMDI6MzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1524", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NjAtMDMzMCJ9" }, "error": "invalid_cursor" }, { "name": "case-1525", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMjlUMTI6MzQ6NjAifQ" }, "error": "invalid_cursor" }, { "name": "case-1526", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMDA6MDBaIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1527", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMDA6MDArMDI6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T21:30:00.000Z" } }, { "_sort": "2024-02-29T21:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T21:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1528", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMDA6MDAtMDMzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T03:30:00.000Z" } }, { "_sort": "2024-03-01T03:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T03:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1529", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMDA6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1530", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NTZaIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T12:34:56.000Z" } }, { "_sort": "2024-03-01T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1531", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NTYrMDI6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T10:04:56.000Z" } }, { "_sort": "2024-03-01T10:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T10:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1532", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NTYtMDMzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T16:04:56.000Z" } }, { "_sort": "2024-03-01T16:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T16:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1533", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NTYifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T12:34:56.000Z" } }, { "_sort": "2024-03-01T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1534", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NTYuMVoifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T12:34:56.100Z" } }, { "_sort": "2024-03-01T12:34:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T12:34:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1535", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NTYuMSswMjozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T10:04:56.100Z" } }, { "_sort": "2024-03-01T10:04:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T10:04:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1536", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NTYuMS0wMzMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T16:04:56.100Z" } }, { "_sort": "2024-03-01T16:04:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T16:04:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1537", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NTYuMSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T12:34:56.100Z" } }, { "_sort": "2024-03-01T12:34:56.100Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T12:34:56.100Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1538", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NTYuMTIzNDU2Nzg5WiJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T12:34:56.123Z" } }, { "_sort": "2024-03-01T12:34:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T12:34:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1539", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NTYuMTIzNDU2Nzg5KzAyOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T10:04:56.123Z" } }, { "_sort": "2024-03-01T10:04:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T10:04:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1540", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NTYuMTIzNDU2Nzg5LTAzMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T16:04:56.123Z" } }, { "_sort": "2024-03-01T16:04:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T16:04:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1541", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NTYuMTIzNDU2Nzg5In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T12:34:56.123Z" } }, { "_sort": "2024-03-01T12:34:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T12:34:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1542", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMjQ6MDBaIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-02T00:00:00.000Z" } }, { "_sort": "2024-03-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1543", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMjQ6MDArMDI6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T21:30:00.000Z" } }, { "_sort": "2024-03-01T21:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T21:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1544", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMjQ6MDAtMDMzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-02T03:30:00.000Z" } }, { "_sort": "2024-03-02T03:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-02T03:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1545", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMjQ6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-02T00:00:00.000Z" } }, { "_sort": "2024-03-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1546", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMjQ6MDA6MDAuMDAxWiJ9" }, "error": "invalid_cursor" }, { "name": "case-1547", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMjQ6MDA6MDAuMDAxKzAyOjMwIn0" }, "error": "invalid_cursor" }, { "name": "case-1548", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMjQ6MDA6MDAuMDAxLTAzMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1549", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMjQ6MDA6MDAuMDAxIn0" }, "error": "invalid_cursor" }, { "name": "case-1550", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMjU6MDBaIn0" }, "error": "invalid_cursor" }, { "name": "case-1551", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMjU6MDArMDI6MzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1552", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMjU6MDAtMDMzMCJ9" }, "error": "invalid_cursor" }, { "name": "case-1553", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMjU6MDAifQ" }, "error": "invalid_cursor" }, { "name": "case-1554", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6NjBaIn0" }, "error": "invalid_cursor" }, { "name": "case-1555", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6NjArMDI6MzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1556", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6NjAtMDMzMCJ9" }, "error": "invalid_cursor" }, { "name": "case-1557", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6NjAifQ" }, "error": "invalid_cursor" }, { "name": "case-1558", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NjBaIn0" }, "error": "invalid_cursor" }, { "name": "case-1559", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NjArMDI6MzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1560", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NjAtMDMzMCJ9" }, "error": "invalid_cursor" }, { "name": "case-1561", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzBUMTI6MzQ6NjAifQ" }, "error": "invalid_cursor" }, { "name": "case-1562", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2000-01-01T00:00:00.000Z" } }, { "_sort": "2000-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2000-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1563", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjEifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T00:00:00.000Z" } }, { "_sort": "2001-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1564", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjEyIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-12-01T00:00:00.000Z" } }, { "_sort": "2001-12-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-12-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1565", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjEzIn0" }, "error": "invalid_cursor" }, { "name": "case-1566", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMxIn0" }, "error": "invalid_cursor" }, { "name": "case-1567", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-01T00:00:00.000Z" } }, { "_sort": "2032-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1568", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjQ5In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-01-01T00:00:00.000Z" } }, { "_sort": "2049-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1569", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1950-01-01T00:00:00.000Z" } }, { "_sort": "1950-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1950-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1570", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ijk5In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-01-01T00:00:00.000Z" } }, { "_sort": "1999-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1571", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjEwMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "0100-01-01T00:00:00.000Z" } }, { "_sort": "0100-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "0100-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1572", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDAwMC0wMS0wMSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2000-01-01T00:00:00.000Z" } }, { "_sort": "2000-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2000-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1573", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T00:00:00.000Z" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1574", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDEtMDFUMDA6MDBaIn0" }, "error": "invalid_cursor" }, { "name": "case-1575", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjEvMi8wMyJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T00:00:00.000Z" } }, { "_sort": "2003-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1576", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQvMDIvMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1577", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQuMDIuMjkifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T00:00:00.000Z" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1578", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T00:00:00.000Z" } }, { "_sort": "2001-01-05T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1579", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgSmFudWFyeSAyMDI0In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-05T00:00:00.000Z" } }, { "_sort": "2024-01-05T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-05T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1580", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IlR1ZSwgMDUgTWFyIDIwMjQgMTI6MzQ6NTYgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-05T12:34:56.000Z" } }, { "_sort": "2024-03-05T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-05T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1581", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ik1hcmNoIDUsIDIwMjQgMTI6MzAgUE0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-05T12:30:00.000Z" } }, { "_sort": "2024-03-05T12:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-05T12:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1582", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDEgMTI6MzQ6NTYifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T12:34:56.000Z" } }, { "_sort": "2024-01-01T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1583", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDEgMTI6MzQ6NTYuMTIzNCBHTVQrMDIwMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T10:34:56.123Z" } }, { "_sort": "2024-01-01T10:34:56.123Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T10:34:56.123Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1584", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDEgKGNvbW1lbnQpIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1585", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Iihjb21tZW50KSAyMDI0LTAxLTAxIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1586", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6ImdhcmJhZ2UgMjAyNC0wMS0wMSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1587", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6ImdhcmJhZ2UyMDI0LTAxLTAxIn0" }, "error": "invalid_cursor" }, { "name": "case-1588", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDEgZ2FyYmFnZSJ9" }, "error": "invalid_cursor" }, { "name": "case-1589", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDEgR01ULTgifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T08:00:00.000Z" } }, { "_sort": "2024-01-01T08:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T08:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1590", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDEgMTI6OjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T12:00:30.000Z" } }, { "_sort": "2024-01-01T12:00:30.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T12:00:30.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1591", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDEgMTI6MzA6NDAgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T17:30:40.000Z" } }, { "_sort": "2024-01-01T17:30:40.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T17:30:40.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1592", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ijk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OSJ9" }, "error": "invalid_cursor" }, { "name": "case-1593", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T00:00:00.000Z" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1594", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T00:00:00.000Z" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1595", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-28T22:30:00.000Z" } }, { "_sort": "2024-02-28T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-28T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1596", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T05:00:00.000Z" } }, { "_sort": "2024-02-29T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1597", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgKzAxMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1598", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MzQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:34:00.000Z" } }, { "_sort": "2024-02-29T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1599", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MzQgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:34:00.000Z" } }, { "_sort": "2024-02-29T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1600", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MzQgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T11:04:00.000Z" } }, { "_sort": "2024-02-29T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1601", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MzQgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T17:34:00.000Z" } }, { "_sort": "2024-02-29T17:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T17:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1602", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MzQgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T11:04:00.000Z" } }, { "_sort": "2024-02-29T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1603", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MzQ6NTYuMDAwMTIzIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:34:56.000Z" } }, { "_sort": "2024-02-29T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1604", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MzQ6NTYuMDAwMTIzIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:34:56.000Z" } }, { "_sort": "2024-02-29T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1605", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MzQ6NTYuMDAwMTIzIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T11:04:56.000Z" } }, { "_sort": "2024-02-29T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1606", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MzQ6NTYuMDAwMTIzIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T17:34:56.000Z" } }, { "_sort": "2024-02-29T17:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T17:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1607", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MzQ6NTYuMDAwMTIzICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T11:04:56.000Z" } }, { "_sort": "2024-02-29T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1608", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:34:56.999Z" } }, { "_sort": "2024-02-29T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1609", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:34:56.999Z" } }, { "_sort": "2024-02-29T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1610", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T11:04:56.999Z" } }, { "_sort": "2024-02-29T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1611", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T17:34:56.999Z" } }, { "_sort": "2024-02-29T17:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T17:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1612", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5ICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T11:04:56.999Z" } }, { "_sort": "2024-02-29T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1613", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMjQ6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1614", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMjQ6MDAgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1615", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMjQ6MDAgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T22:30:00.000Z" } }, { "_sort": "2024-02-29T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1616", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMjQ6MDAgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T05:00:00.000Z" } }, { "_sort": "2024-03-01T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1617", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMjQ6MDAgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T22:30:00.000Z" } }, { "_sort": "2024-02-29T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1618", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MDAgQU0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T00:00:00.000Z" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1619", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MDAgQU0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T00:00:00.000Z" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1620", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MDAgQU0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-28T22:30:00.000Z" } }, { "_sort": "2024-02-28T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-28T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1621", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MDAgQU0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T05:00:00.000Z" } }, { "_sort": "2024-02-29T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1622", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MDAgQU0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-28T22:30:00.000Z" } }, { "_sort": "2024-02-28T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-28T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1623", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MDAgUE0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:00:00.000Z" } }, { "_sort": "2024-02-29T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1624", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MDAgUE0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:00:00.000Z" } }, { "_sort": "2024-02-29T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1625", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MDAgUE0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T10:30:00.000Z" } }, { "_sort": "2024-02-29T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1626", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MDAgUE0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T17:00:00.000Z" } }, { "_sort": "2024-02-29T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1627", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTI6MDAgUE0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T10:30:00.000Z" } }, { "_sort": "2024-02-29T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1628", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMDowMCBQTSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:00:00.000Z" } }, { "_sort": "2024-02-29T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1629", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMDowMCBQTSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T12:00:00.000Z" } }, { "_sort": "2024-02-29T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1630", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMDowMCBQTSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T10:30:00.000Z" } }, { "_sort": "2024-02-29T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1631", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMDowMCBQTSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T17:00:00.000Z" } }, { "_sort": "2024-02-29T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1632", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMDowMCBQTSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T10:30:00.000Z" } }, { "_sort": "2024-02-29T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1633", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTM6MDAgUE0ifQ" }, "error": "invalid_cursor" }, { "name": "case-1634", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTM6MDAgUE0gR01UIn0" }, "error": "invalid_cursor" }, { "name": "case-1635", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTM6MDAgUE0gVVRDKzAxOjMwIn0" }, "error": "invalid_cursor" }, { "name": "case-1636", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTM6MDAgUE0gRVNUIn0" }, "error": "invalid_cursor" }, { "name": "case-1637", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjkgMTM6MDAgUE0gKzAxMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1638", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T00:00:00.000Z" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1639", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T00:00:00.000Z" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1640", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T22:30:00.000Z" } }, { "_sort": "2023-03-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1641", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T05:00:00.000Z" } }, { "_sort": "2023-03-02T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1642", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgKzAxMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1643", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MzQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T12:34:00.000Z" } }, { "_sort": "2023-03-02T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1644", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MzQgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T12:34:00.000Z" } }, { "_sort": "2023-03-02T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1645", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MzQgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T11:04:00.000Z" } }, { "_sort": "2023-03-02T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1646", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MzQgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T17:34:00.000Z" } }, { "_sort": "2023-03-02T17:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T17:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1647", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MzQgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T11:04:00.000Z" } }, { "_sort": "2023-03-02T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1648", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MzQ6NTYuMDAwMTIzIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T12:34:56.000Z" } }, { "_sort": "2023-03-02T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1649", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MzQ6NTYuMDAwMTIzIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T12:34:56.000Z" } }, { "_sort": "2023-03-02T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1650", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MzQ6NTYuMDAwMTIzIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T11:04:56.000Z" } }, { "_sort": "2023-03-02T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1651", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MzQ6NTYuMDAwMTIzIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T17:34:56.000Z" } }, { "_sort": "2023-03-02T17:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T17:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1652", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MzQ6NTYuMDAwMTIzICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T11:04:56.000Z" } }, { "_sort": "2023-03-02T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1653", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T12:34:56.999Z" } }, { "_sort": "2023-03-02T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1654", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T12:34:56.999Z" } }, { "_sort": "2023-03-02T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1655", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T11:04:56.999Z" } }, { "_sort": "2023-03-02T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1656", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T17:34:56.999Z" } }, { "_sort": "2023-03-02T17:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T17:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1657", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5ICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T11:04:56.999Z" } }, { "_sort": "2023-03-02T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1658", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMjQ6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-03T00:00:00.000Z" } }, { "_sort": "2023-03-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1659", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMjQ6MDAgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-03T00:00:00.000Z" } }, { "_sort": "2023-03-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1660", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMjQ6MDAgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T22:30:00.000Z" } }, { "_sort": "2023-03-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1661", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMjQ6MDAgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-03T05:00:00.000Z" } }, { "_sort": "2023-03-03T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-03T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1662", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMjQ6MDAgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T22:30:00.000Z" } }, { "_sort": "2023-03-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1663", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MDAgQU0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T00:00:00.000Z" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1664", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MDAgQU0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T00:00:00.000Z" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1665", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MDAgQU0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T22:30:00.000Z" } }, { "_sort": "2023-03-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1666", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MDAgQU0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T05:00:00.000Z" } }, { "_sort": "2023-03-02T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1667", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MDAgQU0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-01T22:30:00.000Z" } }, { "_sort": "2023-03-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1668", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MDAgUE0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T12:00:00.000Z" } }, { "_sort": "2023-03-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1669", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MDAgUE0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T12:00:00.000Z" } }, { "_sort": "2023-03-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1670", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MDAgUE0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T10:30:00.000Z" } }, { "_sort": "2023-03-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1671", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MDAgUE0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T17:00:00.000Z" } }, { "_sort": "2023-03-02T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1672", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTI6MDAgUE0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T10:30:00.000Z" } }, { "_sort": "2023-03-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1673", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMDowMCBQTSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T12:00:00.000Z" } }, { "_sort": "2023-03-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1674", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMDowMCBQTSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T12:00:00.000Z" } }, { "_sort": "2023-03-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1675", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMDowMCBQTSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T10:30:00.000Z" } }, { "_sort": "2023-03-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1676", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMDowMCBQTSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T17:00:00.000Z" } }, { "_sort": "2023-03-02T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1677", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMDowMCBQTSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2023-03-02T10:30:00.000Z" } }, { "_sort": "2023-03-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2023-03-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1678", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTM6MDAgUE0ifQ" }, "error": "invalid_cursor" }, { "name": "case-1679", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTM6MDAgUE0gR01UIn0" }, "error": "invalid_cursor" }, { "name": "case-1680", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTM6MDAgUE0gVVRDKzAxOjMwIn0" }, "error": "invalid_cursor" }, { "name": "case-1681", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTM6MDAgUE0gRVNUIn0" }, "error": "invalid_cursor" }, { "name": "case-1682", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjMtMDItMzAgMTM6MDAgUE0gKzAxMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1683", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "0001-01-01T00:00:00.000Z" } }, { "_sort": "0001-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "0001-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1684", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T00:00:00.000Z" } }, { "_sort": "2001-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1685", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2000-12-31T22:30:00.000Z" } }, { "_sort": "2000-12-31T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2000-12-31T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1686", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T05:00:00.000Z" } }, { "_sort": "2001-01-01T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1687", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgKzAxMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1688", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MzQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T12:34:00.000Z" } }, { "_sort": "2001-01-01T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1689", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MzQgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T12:34:00.000Z" } }, { "_sort": "2001-01-01T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1690", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MzQgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T11:04:00.000Z" } }, { "_sort": "2001-01-01T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1691", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MzQgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T17:34:00.000Z" } }, { "_sort": "2001-01-01T17:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T17:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1692", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MzQgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T11:04:00.000Z" } }, { "_sort": "2001-01-01T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1693", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MzQ6NTYuMDAwMTIzIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T12:34:56.000Z" } }, { "_sort": "2001-01-01T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1694", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MzQ6NTYuMDAwMTIzIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T12:34:56.000Z" } }, { "_sort": "2001-01-01T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1695", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MzQ6NTYuMDAwMTIzIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T11:04:56.000Z" } }, { "_sort": "2001-01-01T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1696", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MzQ6NTYuMDAwMTIzIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T17:34:56.000Z" } }, { "_sort": "2001-01-01T17:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T17:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1697", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MzQ6NTYuMDAwMTIzICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T11:04:56.000Z" } }, { "_sort": "2001-01-01T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1698", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T12:34:56.999Z" } }, { "_sort": "2001-01-01T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1699", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T12:34:56.999Z" } }, { "_sort": "2001-01-01T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1700", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T11:04:56.999Z" } }, { "_sort": "2001-01-01T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1701", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T17:34:56.999Z" } }, { "_sort": "2001-01-01T17:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T17:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1702", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5ICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T11:04:56.999Z" } }, { "_sort": "2001-01-01T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1703", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMjQ6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-02T00:00:00.000Z" } }, { "_sort": "2001-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1704", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMjQ6MDAgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-02T00:00:00.000Z" } }, { "_sort": "2001-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1705", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMjQ6MDAgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T22:30:00.000Z" } }, { "_sort": "2001-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1706", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMjQ6MDAgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-02T05:00:00.000Z" } }, { "_sort": "2001-01-02T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-02T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1707", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMjQ6MDAgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T22:30:00.000Z" } }, { "_sort": "2001-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1708", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MDAgQU0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T00:00:00.000Z" } }, { "_sort": "2001-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1709", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MDAgQU0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T00:00:00.000Z" } }, { "_sort": "2001-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1710", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MDAgQU0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2000-12-31T22:30:00.000Z" } }, { "_sort": "2000-12-31T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2000-12-31T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1711", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MDAgQU0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T05:00:00.000Z" } }, { "_sort": "2001-01-01T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1712", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MDAgQU0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2000-12-31T22:30:00.000Z" } }, { "_sort": "2000-12-31T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2000-12-31T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1713", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MDAgUE0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T12:00:00.000Z" } }, { "_sort": "2001-01-01T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1714", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MDAgUE0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T12:00:00.000Z" } }, { "_sort": "2001-01-01T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1715", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MDAgUE0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T10:30:00.000Z" } }, { "_sort": "2001-01-01T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1716", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MDAgUE0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T17:00:00.000Z" } }, { "_sort": "2001-01-01T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1717", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTI6MDAgUE0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T10:30:00.000Z" } }, { "_sort": "2001-01-01T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1718", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMDowMCBQTSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T12:00:00.000Z" } }, { "_sort": "2001-01-01T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1719", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMDowMCBQTSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T12:00:00.000Z" } }, { "_sort": "2001-01-01T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1720", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMDowMCBQTSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T10:30:00.000Z" } }, { "_sort": "2001-01-01T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1721", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMDowMCBQTSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T17:00:00.000Z" } }, { "_sort": "2001-01-01T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1722", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMDowMCBQTSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-01T10:30:00.000Z" } }, { "_sort": "2001-01-01T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-01T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1723", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTM6MDAgUE0ifQ" }, "error": "invalid_cursor" }, { "name": "case-1724", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTM6MDAgUE0gR01UIn0" }, "error": "invalid_cursor" }, { "name": "case-1725", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTM6MDAgUE0gVVRDKzAxOjMwIn0" }, "error": "invalid_cursor" }, { "name": "case-1726", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTM6MDAgUE0gRVNUIn0" }, "error": "invalid_cursor" }, { "name": "case-1727", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAwMDEtMDEtMDEgMTM6MDAgUE0gKzAxMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1728", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T00:00:00.000Z" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1729", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T00:00:00.000Z" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1730", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-02T22:30:00.000Z" } }, { "_sort": "2001-02-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1731", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T05:00:00.000Z" } }, { "_sort": "2001-02-03T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1732", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgKzAxMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1733", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MzQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T12:34:00.000Z" } }, { "_sort": "2001-02-03T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1734", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MzQgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T12:34:00.000Z" } }, { "_sort": "2001-02-03T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1735", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MzQgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T11:04:00.000Z" } }, { "_sort": "2001-02-03T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1736", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MzQgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T17:34:00.000Z" } }, { "_sort": "2001-02-03T17:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T17:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1737", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MzQgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T11:04:00.000Z" } }, { "_sort": "2001-02-03T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1738", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MzQ6NTYuMDAwMTIzIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T12:34:56.000Z" } }, { "_sort": "2001-02-03T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1739", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MzQ6NTYuMDAwMTIzIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T12:34:56.000Z" } }, { "_sort": "2001-02-03T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1740", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MzQ6NTYuMDAwMTIzIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T11:04:56.000Z" } }, { "_sort": "2001-02-03T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1741", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MzQ6NTYuMDAwMTIzIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T17:34:56.000Z" } }, { "_sort": "2001-02-03T17:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T17:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1742", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MzQ6NTYuMDAwMTIzICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T11:04:56.000Z" } }, { "_sort": "2001-02-03T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1743", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T12:34:56.999Z" } }, { "_sort": "2001-02-03T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1744", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T12:34:56.999Z" } }, { "_sort": "2001-02-03T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1745", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T11:04:56.999Z" } }, { "_sort": "2001-02-03T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1746", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T17:34:56.999Z" } }, { "_sort": "2001-02-03T17:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T17:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1747", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5ICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T11:04:56.999Z" } }, { "_sort": "2001-02-03T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1748", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMjQ6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-04T00:00:00.000Z" } }, { "_sort": "2001-02-04T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-04T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1749", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMjQ6MDAgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-04T00:00:00.000Z" } }, { "_sort": "2001-02-04T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-04T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1750", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMjQ6MDAgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T22:30:00.000Z" } }, { "_sort": "2001-02-03T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1751", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMjQ6MDAgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-04T05:00:00.000Z" } }, { "_sort": "2001-02-04T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-04T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1752", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMjQ6MDAgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T22:30:00.000Z" } }, { "_sort": "2001-02-03T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1753", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MDAgQU0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T00:00:00.000Z" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1754", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MDAgQU0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T00:00:00.000Z" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1755", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MDAgQU0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-02T22:30:00.000Z" } }, { "_sort": "2001-02-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1756", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MDAgQU0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T05:00:00.000Z" } }, { "_sort": "2001-02-03T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1757", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MDAgQU0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-02T22:30:00.000Z" } }, { "_sort": "2001-02-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1758", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MDAgUE0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T12:00:00.000Z" } }, { "_sort": "2001-02-03T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1759", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MDAgUE0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T12:00:00.000Z" } }, { "_sort": "2001-02-03T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1760", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MDAgUE0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T10:30:00.000Z" } }, { "_sort": "2001-02-03T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1761", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MDAgUE0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T17:00:00.000Z" } }, { "_sort": "2001-02-03T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1762", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTI6MDAgUE0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T10:30:00.000Z" } }, { "_sort": "2001-02-03T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1763", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMDowMCBQTSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T12:00:00.000Z" } }, { "_sort": "2001-02-03T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1764", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMDowMCBQTSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T12:00:00.000Z" } }, { "_sort": "2001-02-03T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1765", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMDowMCBQTSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T10:30:00.000Z" } }, { "_sort": "2001-02-03T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1766", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMDowMCBQTSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T17:00:00.000Z" } }, { "_sort": "2001-02-03T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1767", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMDowMCBQTSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T10:30:00.000Z" } }, { "_sort": "2001-02-03T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1768", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTM6MDAgUE0ifQ" }, "error": "invalid_cursor" }, { "name": "case-1769", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTM6MDAgUE0gR01UIn0" }, "error": "invalid_cursor" }, { "name": "case-1770", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTM6MDAgUE0gVVRDKzAxOjMwIn0" }, "error": "invalid_cursor" }, { "name": "case-1771", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTM6MDAgUE0gRVNUIn0" }, "error": "invalid_cursor" }, { "name": "case-1772", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMgMTM6MDAgUE0gKzAxMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1773", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T00:00:00.000Z" } }, { "_sort": "2003-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1774", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T00:00:00.000Z" } }, { "_sort": "2003-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1775", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-01T22:30:00.000Z" } }, { "_sort": "2003-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1776", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T05:00:00.000Z" } }, { "_sort": "2003-01-02T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1777", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzICswMTMwIn0" }, "error": "invalid_cursor" }, { "name": "case-1778", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjM0In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T12:34:00.000Z" } }, { "_sort": "2003-01-02T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1779", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjM0IEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T12:34:00.000Z" } }, { "_sort": "2003-01-02T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1780", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjM0IFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T11:04:00.000Z" } }, { "_sort": "2003-01-02T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1781", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjM0IEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T17:34:00.000Z" } }, { "_sort": "2003-01-02T17:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T17:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1782", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjM0ICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T11:04:00.000Z" } }, { "_sort": "2003-01-02T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1783", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjM0OjU2LjAwMDEyMyJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T12:34:56.000Z" } }, { "_sort": "2003-01-02T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1784", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjM0OjU2LjAwMDEyMyBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T12:34:56.000Z" } }, { "_sort": "2003-01-02T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1785", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjM0OjU2LjAwMDEyMyBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T11:04:56.000Z" } }, { "_sort": "2003-01-02T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1786", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjM0OjU2LjAwMDEyMyBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T17:34:56.000Z" } }, { "_sort": "2003-01-02T17:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T17:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1787", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjM0OjU2LjAwMDEyMyArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T11:04:56.000Z" } }, { "_sort": "2003-01-02T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1788", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T12:34:56.999Z" } }, { "_sort": "2003-01-02T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1789", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T12:34:56.999Z" } }, { "_sort": "2003-01-02T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1790", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T11:04:56.999Z" } }, { "_sort": "2003-01-02T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1791", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T17:34:56.999Z" } }, { "_sort": "2003-01-02T17:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T17:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1792", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T11:04:56.999Z" } }, { "_sort": "2003-01-02T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1793", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDI0OjAwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-03T00:00:00.000Z" } }, { "_sort": "2003-01-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1794", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDI0OjAwIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-03T00:00:00.000Z" } }, { "_sort": "2003-01-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1795", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDI0OjAwIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T22:30:00.000Z" } }, { "_sort": "2003-01-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1796", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDI0OjAwIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-03T05:00:00.000Z" } }, { "_sort": "2003-01-03T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-03T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1797", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDI0OjAwICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T22:30:00.000Z" } }, { "_sort": "2003-01-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1798", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjAwIEFNIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T00:00:00.000Z" } }, { "_sort": "2003-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1799", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjAwIEFNIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T00:00:00.000Z" } }, { "_sort": "2003-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1800", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjAwIEFNIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-01T22:30:00.000Z" } }, { "_sort": "2003-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1801", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjAwIEFNIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T05:00:00.000Z" } }, { "_sort": "2003-01-02T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1802", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjAwIEFNICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-01T22:30:00.000Z" } }, { "_sort": "2003-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1803", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjAwIFBNIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T12:00:00.000Z" } }, { "_sort": "2003-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1804", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjAwIFBNIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T12:00:00.000Z" } }, { "_sort": "2003-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1805", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjAwIFBNIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T10:30:00.000Z" } }, { "_sort": "2003-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1806", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjAwIFBNIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T17:00:00.000Z" } }, { "_sort": "2003-01-02T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1807", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEyOjAwIFBNICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T10:30:00.000Z" } }, { "_sort": "2003-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1808", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDA6MDAgUE0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T12:00:00.000Z" } }, { "_sort": "2003-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1809", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDA6MDAgUE0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T12:00:00.000Z" } }, { "_sort": "2003-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1810", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDA6MDAgUE0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T10:30:00.000Z" } }, { "_sort": "2003-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1811", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDA6MDAgUE0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T17:00:00.000Z" } }, { "_sort": "2003-01-02T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1812", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDA6MDAgUE0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2003-01-02T10:30:00.000Z" } }, { "_sort": "2003-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2003-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1813", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEzOjAwIFBNIn0" }, "error": "invalid_cursor" }, { "name": "case-1814", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEzOjAwIFBNIEdNVCJ9" }, "error": "invalid_cursor" }, { "name": "case-1815", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEzOjAwIFBNIFVUQyswMTozMCJ9" }, "error": "invalid_cursor" }, { "name": "case-1816", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEzOjAwIFBNIEVTVCJ9" }, "error": "invalid_cursor" }, { "name": "case-1817", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjAxLzAyLzAzIDEzOjAwIFBNICswMTMwIn0" }, "error": "invalid_cursor" }, { "name": "case-1818", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T00:00:00.000Z" } }, { "_sort": "2032-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1819", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T00:00:00.000Z" } }, { "_sort": "2032-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1820", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-01T22:30:00.000Z" } }, { "_sort": "2032-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1821", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T05:00:00.000Z" } }, { "_sort": "2032-01-02T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1822", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyICswMTMwIn0" }, "error": "invalid_cursor" }, { "name": "case-1823", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjM0In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T12:34:00.000Z" } }, { "_sort": "2032-01-02T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1824", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjM0IEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T12:34:00.000Z" } }, { "_sort": "2032-01-02T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1825", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjM0IFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T11:04:00.000Z" } }, { "_sort": "2032-01-02T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1826", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjM0IEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T17:34:00.000Z" } }, { "_sort": "2032-01-02T17:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T17:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1827", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjM0ICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T11:04:00.000Z" } }, { "_sort": "2032-01-02T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1828", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjM0OjU2LjAwMDEyMyJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T12:34:56.000Z" } }, { "_sort": "2032-01-02T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1829", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjM0OjU2LjAwMDEyMyBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T12:34:56.000Z" } }, { "_sort": "2032-01-02T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1830", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjM0OjU2LjAwMDEyMyBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T11:04:56.000Z" } }, { "_sort": "2032-01-02T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1831", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjM0OjU2LjAwMDEyMyBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T17:34:56.000Z" } }, { "_sort": "2032-01-02T17:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T17:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1832", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjM0OjU2LjAwMDEyMyArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T11:04:56.000Z" } }, { "_sort": "2032-01-02T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1833", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T12:34:56.999Z" } }, { "_sort": "2032-01-02T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1834", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T12:34:56.999Z" } }, { "_sort": "2032-01-02T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1835", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T11:04:56.999Z" } }, { "_sort": "2032-01-02T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1836", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T17:34:56.999Z" } }, { "_sort": "2032-01-02T17:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T17:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1837", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T11:04:56.999Z" } }, { "_sort": "2032-01-02T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1838", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDI0OjAwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-03T00:00:00.000Z" } }, { "_sort": "2032-01-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1839", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDI0OjAwIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-03T00:00:00.000Z" } }, { "_sort": "2032-01-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1840", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDI0OjAwIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T22:30:00.000Z" } }, { "_sort": "2032-01-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1841", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDI0OjAwIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-03T05:00:00.000Z" } }, { "_sort": "2032-01-03T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-03T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1842", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDI0OjAwICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T22:30:00.000Z" } }, { "_sort": "2032-01-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1843", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjAwIEFNIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T00:00:00.000Z" } }, { "_sort": "2032-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1844", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjAwIEFNIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T00:00:00.000Z" } }, { "_sort": "2032-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1845", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjAwIEFNIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-01T22:30:00.000Z" } }, { "_sort": "2032-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1846", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjAwIEFNIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T05:00:00.000Z" } }, { "_sort": "2032-01-02T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1847", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjAwIEFNICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-01T22:30:00.000Z" } }, { "_sort": "2032-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1848", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjAwIFBNIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T12:00:00.000Z" } }, { "_sort": "2032-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1849", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjAwIFBNIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T12:00:00.000Z" } }, { "_sort": "2032-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1850", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjAwIFBNIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T10:30:00.000Z" } }, { "_sort": "2032-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1851", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjAwIFBNIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T17:00:00.000Z" } }, { "_sort": "2032-01-02T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1852", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEyOjAwIFBNICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T10:30:00.000Z" } }, { "_sort": "2032-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1853", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDA6MDAgUE0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T12:00:00.000Z" } }, { "_sort": "2032-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1854", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDA6MDAgUE0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T12:00:00.000Z" } }, { "_sort": "2032-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1855", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDA6MDAgUE0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T10:30:00.000Z" } }, { "_sort": "2032-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1856", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDA6MDAgUE0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T17:00:00.000Z" } }, { "_sort": "2032-01-02T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1857", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDA6MDAgUE0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2032-01-02T10:30:00.000Z" } }, { "_sort": "2032-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2032-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1858", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEzOjAwIFBNIn0" }, "error": "invalid_cursor" }, { "name": "case-1859", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEzOjAwIFBNIEdNVCJ9" }, "error": "invalid_cursor" }, { "name": "case-1860", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEzOjAwIFBNIFVUQyswMTozMCJ9" }, "error": "invalid_cursor" }, { "name": "case-1861", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEzOjAwIFBNIEVTVCJ9" }, "error": "invalid_cursor" }, { "name": "case-1862", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjMyLzAxLzAyIDEzOjAwIFBNICswMTMwIn0" }, "error": "invalid_cursor" }, { "name": "case-1863", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T00:00:00.000Z" } }, { "_sort": "2001-01-05T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1864", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T00:00:00.000Z" } }, { "_sort": "2001-01-05T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1865", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-04T22:30:00.000Z" } }, { "_sort": "2001-01-04T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-04T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1866", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T05:00:00.000Z" } }, { "_sort": "2001-01-05T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1867", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1ICswMTMwIn0" }, "error": "invalid_cursor" }, { "name": "case-1868", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjM0In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T12:34:00.000Z" } }, { "_sort": "2001-01-05T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1869", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjM0IEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T12:34:00.000Z" } }, { "_sort": "2001-01-05T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1870", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjM0IFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T11:04:00.000Z" } }, { "_sort": "2001-01-05T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1871", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjM0IEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T17:34:00.000Z" } }, { "_sort": "2001-01-05T17:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T17:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1872", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjM0ICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T11:04:00.000Z" } }, { "_sort": "2001-01-05T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1873", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjM0OjU2LjAwMDEyMyJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T12:34:56.000Z" } }, { "_sort": "2001-01-05T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1874", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjM0OjU2LjAwMDEyMyBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T12:34:56.000Z" } }, { "_sort": "2001-01-05T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1875", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjM0OjU2LjAwMDEyMyBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T11:04:56.000Z" } }, { "_sort": "2001-01-05T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1876", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjM0OjU2LjAwMDEyMyBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T17:34:56.000Z" } }, { "_sort": "2001-01-05T17:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T17:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1877", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjM0OjU2LjAwMDEyMyArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T11:04:56.000Z" } }, { "_sort": "2001-01-05T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1878", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T12:34:56.999Z" } }, { "_sort": "2001-01-05T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1879", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T12:34:56.999Z" } }, { "_sort": "2001-01-05T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1880", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T11:04:56.999Z" } }, { "_sort": "2001-01-05T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1881", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T17:34:56.999Z" } }, { "_sort": "2001-01-05T17:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T17:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1882", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T11:04:56.999Z" } }, { "_sort": "2001-01-05T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1883", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDI0OjAwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-06T00:00:00.000Z" } }, { "_sort": "2001-01-06T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-06T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1884", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDI0OjAwIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-06T00:00:00.000Z" } }, { "_sort": "2001-01-06T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-06T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1885", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDI0OjAwIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T22:30:00.000Z" } }, { "_sort": "2001-01-05T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1886", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDI0OjAwIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-06T05:00:00.000Z" } }, { "_sort": "2001-01-06T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-06T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1887", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDI0OjAwICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T22:30:00.000Z" } }, { "_sort": "2001-01-05T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1888", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjAwIEFNIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T00:00:00.000Z" } }, { "_sort": "2001-01-05T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1889", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjAwIEFNIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T00:00:00.000Z" } }, { "_sort": "2001-01-05T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1890", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjAwIEFNIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-04T22:30:00.000Z" } }, { "_sort": "2001-01-04T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-04T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1891", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjAwIEFNIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T05:00:00.000Z" } }, { "_sort": "2001-01-05T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1892", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjAwIEFNICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-04T22:30:00.000Z" } }, { "_sort": "2001-01-04T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-04T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1893", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjAwIFBNIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T12:00:00.000Z" } }, { "_sort": "2001-01-05T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1894", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjAwIFBNIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T12:00:00.000Z" } }, { "_sort": "2001-01-05T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1895", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjAwIFBNIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T10:30:00.000Z" } }, { "_sort": "2001-01-05T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1896", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjAwIFBNIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T17:00:00.000Z" } }, { "_sort": "2001-01-05T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1897", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEyOjAwIFBNICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T10:30:00.000Z" } }, { "_sort": "2001-01-05T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1898", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDA6MDAgUE0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T12:00:00.000Z" } }, { "_sort": "2001-01-05T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1899", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDA6MDAgUE0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T12:00:00.000Z" } }, { "_sort": "2001-01-05T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1900", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDA6MDAgUE0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T10:30:00.000Z" } }, { "_sort": "2001-01-05T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1901", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDA6MDAgUE0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T17:00:00.000Z" } }, { "_sort": "2001-01-05T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1902", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDA6MDAgUE0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-01-05T10:30:00.000Z" } }, { "_sort": "2001-01-05T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-01-05T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1903", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEzOjAwIFBNIn0" }, "error": "invalid_cursor" }, { "name": "case-1904", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEzOjAwIFBNIEdNVCJ9" }, "error": "invalid_cursor" }, { "name": "case-1905", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEzOjAwIFBNIFVUQyswMTozMCJ9" }, "error": "invalid_cursor" }, { "name": "case-1906", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEzOjAwIFBNIEVTVCJ9" }, "error": "invalid_cursor" }, { "name": "case-1907", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkphbiA1IDEzOjAwIFBNICswMTMwIn0" }, "error": "invalid_cursor" }, { "name": "case-1908", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T00:00:00.000Z" } }, { "_sort": "2049-03-05T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1909", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T00:00:00.000Z" } }, { "_sort": "2049-03-05T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1910", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-04T22:30:00.000Z" } }, { "_sort": "2049-03-04T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-04T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1911", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T05:00:00.000Z" } }, { "_sort": "2049-03-05T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1912", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgKzAxMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1913", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MzQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T12:34:00.000Z" } }, { "_sort": "2049-03-05T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1914", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MzQgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T12:34:00.000Z" } }, { "_sort": "2049-03-05T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1915", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MzQgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T11:04:00.000Z" } }, { "_sort": "2049-03-05T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1916", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MzQgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T17:34:00.000Z" } }, { "_sort": "2049-03-05T17:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T17:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1917", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MzQgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T11:04:00.000Z" } }, { "_sort": "2049-03-05T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1918", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MzQ6NTYuMDAwMTIzIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T12:34:56.000Z" } }, { "_sort": "2049-03-05T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1919", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MzQ6NTYuMDAwMTIzIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T12:34:56.000Z" } }, { "_sort": "2049-03-05T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1920", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MzQ6NTYuMDAwMTIzIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T11:04:56.000Z" } }, { "_sort": "2049-03-05T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1921", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MzQ6NTYuMDAwMTIzIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T17:34:56.000Z" } }, { "_sort": "2049-03-05T17:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T17:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1922", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MzQ6NTYuMDAwMTIzICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T11:04:56.000Z" } }, { "_sort": "2049-03-05T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1923", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T12:34:56.999Z" } }, { "_sort": "2049-03-05T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1924", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T12:34:56.999Z" } }, { "_sort": "2049-03-05T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1925", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T11:04:56.999Z" } }, { "_sort": "2049-03-05T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1926", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5IEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T17:34:56.999Z" } }, { "_sort": "2049-03-05T17:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T17:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1927", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MzQ6NTYuOTk5OTk5OTk5OTk5ICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T11:04:56.999Z" } }, { "_sort": "2049-03-05T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1928", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMjQ6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-06T00:00:00.000Z" } }, { "_sort": "2049-03-06T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-06T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1929", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMjQ6MDAgR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-06T00:00:00.000Z" } }, { "_sort": "2049-03-06T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-06T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1930", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMjQ6MDAgVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T22:30:00.000Z" } }, { "_sort": "2049-03-05T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1931", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMjQ6MDAgRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-06T05:00:00.000Z" } }, { "_sort": "2049-03-06T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-06T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1932", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMjQ6MDAgKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T22:30:00.000Z" } }, { "_sort": "2049-03-05T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1933", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MDAgQU0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T00:00:00.000Z" } }, { "_sort": "2049-03-05T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1934", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MDAgQU0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T00:00:00.000Z" } }, { "_sort": "2049-03-05T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1935", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MDAgQU0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-04T22:30:00.000Z" } }, { "_sort": "2049-03-04T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-04T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1936", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MDAgQU0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T05:00:00.000Z" } }, { "_sort": "2049-03-05T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1937", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MDAgQU0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-04T22:30:00.000Z" } }, { "_sort": "2049-03-04T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-04T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1938", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MDAgUE0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T12:00:00.000Z" } }, { "_sort": "2049-03-05T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1939", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MDAgUE0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T12:00:00.000Z" } }, { "_sort": "2049-03-05T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1940", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MDAgUE0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T10:30:00.000Z" } }, { "_sort": "2049-03-05T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1941", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MDAgUE0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T17:00:00.000Z" } }, { "_sort": "2049-03-05T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1942", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTI6MDAgUE0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T10:30:00.000Z" } }, { "_sort": "2049-03-05T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1943", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMDowMCBQTSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T12:00:00.000Z" } }, { "_sort": "2049-03-05T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1944", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMDowMCBQTSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T12:00:00.000Z" } }, { "_sort": "2049-03-05T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1945", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMDowMCBQTSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T10:30:00.000Z" } }, { "_sort": "2049-03-05T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1946", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMDowMCBQTSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T17:00:00.000Z" } }, { "_sort": "2049-03-05T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1947", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMDowMCBQTSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2049-03-05T10:30:00.000Z" } }, { "_sort": "2049-03-05T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2049-03-05T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1948", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTM6MDAgUE0ifQ" }, "error": "invalid_cursor" }, { "name": "case-1949", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTM6MDAgUE0gR01UIn0" }, "error": "invalid_cursor" }, { "name": "case-1950", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTM6MDAgUE0gVVRDKzAxOjMwIn0" }, "error": "invalid_cursor" }, { "name": "case-1951", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTM6MDAgUE0gRVNUIn0" }, "error": "invalid_cursor" }, { "name": "case-1952", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjUgTWFyY2ggNDkgMTM6MDAgUE0gKzAxMzAifQ" }, "error": "invalid_cursor" }, { "name": "case-1953", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T00:00:00.000Z" } }, { "_sort": "1999-12-31T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1954", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T00:00:00.000Z" } }, { "_sort": "1999-12-31T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1955", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-30T22:30:00.000Z" } }, { "_sort": "1999-12-30T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-30T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1956", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T05:00:00.000Z" } }, { "_sort": "1999-12-31T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1957", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5ICswMTMwIn0" }, "error": "invalid_cursor" }, { "name": "case-1958", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjM0In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T12:34:00.000Z" } }, { "_sort": "1999-12-31T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1959", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjM0IEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T12:34:00.000Z" } }, { "_sort": "1999-12-31T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1960", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjM0IFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T11:04:00.000Z" } }, { "_sort": "1999-12-31T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1961", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjM0IEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T17:34:00.000Z" } }, { "_sort": "1999-12-31T17:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T17:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1962", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjM0ICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T11:04:00.000Z" } }, { "_sort": "1999-12-31T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1963", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjM0OjU2LjAwMDEyMyJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T12:34:56.000Z" } }, { "_sort": "1999-12-31T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1964", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjM0OjU2LjAwMDEyMyBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T12:34:56.000Z" } }, { "_sort": "1999-12-31T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1965", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjM0OjU2LjAwMDEyMyBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T11:04:56.000Z" } }, { "_sort": "1999-12-31T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1966", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjM0OjU2LjAwMDEyMyBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T17:34:56.000Z" } }, { "_sort": "1999-12-31T17:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T17:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1967", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjM0OjU2LjAwMDEyMyArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T11:04:56.000Z" } }, { "_sort": "1999-12-31T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1968", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T12:34:56.999Z" } }, { "_sort": "1999-12-31T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1969", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T12:34:56.999Z" } }, { "_sort": "1999-12-31T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1970", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T11:04:56.999Z" } }, { "_sort": "1999-12-31T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1971", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T17:34:56.999Z" } }, { "_sort": "1999-12-31T17:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T17:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1972", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T11:04:56.999Z" } }, { "_sort": "1999-12-31T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1973", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDI0OjAwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2000-01-01T00:00:00.000Z" } }, { "_sort": "2000-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2000-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1974", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDI0OjAwIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2000-01-01T00:00:00.000Z" } }, { "_sort": "2000-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2000-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1975", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDI0OjAwIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T22:30:00.000Z" } }, { "_sort": "1999-12-31T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1976", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDI0OjAwIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2000-01-01T05:00:00.000Z" } }, { "_sort": "2000-01-01T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2000-01-01T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1977", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDI0OjAwICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T22:30:00.000Z" } }, { "_sort": "1999-12-31T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1978", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjAwIEFNIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T00:00:00.000Z" } }, { "_sort": "1999-12-31T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1979", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjAwIEFNIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T00:00:00.000Z" } }, { "_sort": "1999-12-31T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1980", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjAwIEFNIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-30T22:30:00.000Z" } }, { "_sort": "1999-12-30T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-30T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1981", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjAwIEFNIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T05:00:00.000Z" } }, { "_sort": "1999-12-31T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1982", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjAwIEFNICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-30T22:30:00.000Z" } }, { "_sort": "1999-12-30T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-30T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1983", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjAwIFBNIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T12:00:00.000Z" } }, { "_sort": "1999-12-31T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1984", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjAwIFBNIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T12:00:00.000Z" } }, { "_sort": "1999-12-31T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1985", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjAwIFBNIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T10:30:00.000Z" } }, { "_sort": "1999-12-31T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1986", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjAwIFBNIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T17:00:00.000Z" } }, { "_sort": "1999-12-31T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1987", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEyOjAwIFBNICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T10:30:00.000Z" } }, { "_sort": "1999-12-31T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1988", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDA6MDAgUE0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T12:00:00.000Z" } }, { "_sort": "1999-12-31T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1989", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDA6MDAgUE0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T12:00:00.000Z" } }, { "_sort": "1999-12-31T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1990", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDA6MDAgUE0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T10:30:00.000Z" } }, { "_sort": "1999-12-31T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1991", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDA6MDAgUE0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T17:00:00.000Z" } }, { "_sort": "1999-12-31T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1992", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDA6MDAgUE0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "1999-12-31T10:30:00.000Z" } }, { "_sort": "1999-12-31T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "1999-12-31T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1993", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEzOjAwIFBNIn0" }, "error": "invalid_cursor" }, { "name": "case-1994", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEzOjAwIFBNIEdNVCJ9" }, "error": "invalid_cursor" }, { "name": "case-1995", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEzOjAwIFBNIFVUQyswMTozMCJ9" }, "error": "invalid_cursor" }, { "name": "case-1996", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEzOjAwIFBNIEVTVCJ9" }, "error": "invalid_cursor" }, { "name": "case-1997", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IkRlY2VtYmVyIDMxIDk5IDEzOjAwIFBNICswMTMwIn0" }, "error": "invalid_cursor" }, { "name": "case-1998", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T00:00:00.000Z" } }, { "_sort": "2024-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-1999", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T00:00:00.000Z" } }, { "_sort": "2024-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2000", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T22:30:00.000Z" } }, { "_sort": "2024-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2001", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T05:00:00.000Z" } }, { "_sort": "2024-01-02T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2002", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyICswMTMwIn0" }, "error": "invalid_cursor" }, { "name": "case-2003", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjM0In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T12:34:00.000Z" } }, { "_sort": "2024-01-02T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2004", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjM0IEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T12:34:00.000Z" } }, { "_sort": "2024-01-02T12:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T12:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2005", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjM0IFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T11:04:00.000Z" } }, { "_sort": "2024-01-02T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2006", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjM0IEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T17:34:00.000Z" } }, { "_sort": "2024-01-02T17:34:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T17:34:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2007", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjM0ICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T11:04:00.000Z" } }, { "_sort": "2024-01-02T11:04:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T11:04:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2008", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjM0OjU2LjAwMDEyMyJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T12:34:56.000Z" } }, { "_sort": "2024-01-02T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2009", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjM0OjU2LjAwMDEyMyBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T12:34:56.000Z" } }, { "_sort": "2024-01-02T12:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T12:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2010", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjM0OjU2LjAwMDEyMyBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T11:04:56.000Z" } }, { "_sort": "2024-01-02T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2011", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjM0OjU2LjAwMDEyMyBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T17:34:56.000Z" } }, { "_sort": "2024-01-02T17:34:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T17:34:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2012", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjM0OjU2LjAwMDEyMyArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T11:04:56.000Z" } }, { "_sort": "2024-01-02T11:04:56.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T11:04:56.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2013", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T12:34:56.999Z" } }, { "_sort": "2024-01-02T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2014", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSBHTVQifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T12:34:56.999Z" } }, { "_sort": "2024-01-02T12:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T12:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2015", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSBVVEMrMDE6MzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T11:04:56.999Z" } }, { "_sort": "2024-01-02T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2016", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSBFU1QifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T17:34:56.999Z" } }, { "_sort": "2024-01-02T17:34:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T17:34:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2017", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjM0OjU2Ljk5OTk5OTk5OTk5OSArMDEzMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T11:04:56.999Z" } }, { "_sort": "2024-01-02T11:04:56.999Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T11:04:56.999Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2018", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDI0OjAwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-03T00:00:00.000Z" } }, { "_sort": "2024-01-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2019", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDI0OjAwIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-03T00:00:00.000Z" } }, { "_sort": "2024-01-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2020", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDI0OjAwIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T22:30:00.000Z" } }, { "_sort": "2024-01-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2021", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDI0OjAwIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-03T05:00:00.000Z" } }, { "_sort": "2024-01-03T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-03T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2022", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDI0OjAwICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T22:30:00.000Z" } }, { "_sort": "2024-01-02T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2023", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjAwIEFNIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T00:00:00.000Z" } }, { "_sort": "2024-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2024", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjAwIEFNIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T00:00:00.000Z" } }, { "_sort": "2024-01-02T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2025", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjAwIEFNIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T22:30:00.000Z" } }, { "_sort": "2024-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2026", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjAwIEFNIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T05:00:00.000Z" } }, { "_sort": "2024-01-02T05:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T05:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2027", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjAwIEFNICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T22:30:00.000Z" } }, { "_sort": "2024-01-01T22:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T22:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2028", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjAwIFBNIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T12:00:00.000Z" } }, { "_sort": "2024-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2029", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjAwIFBNIEdNVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T12:00:00.000Z" } }, { "_sort": "2024-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2030", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjAwIFBNIFVUQyswMTozMCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T10:30:00.000Z" } }, { "_sort": "2024-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2031", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjAwIFBNIEVTVCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T17:00:00.000Z" } }, { "_sort": "2024-01-02T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2032", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEyOjAwIFBNICswMTMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T10:30:00.000Z" } }, { "_sort": "2024-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2033", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDA6MDAgUE0ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T12:00:00.000Z" } }, { "_sort": "2024-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2034", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDA6MDAgUE0gR01UIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T12:00:00.000Z" } }, { "_sort": "2024-01-02T12:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T12:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2035", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDA6MDAgUE0gVVRDKzAxOjMwIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T10:30:00.000Z" } }, { "_sort": "2024-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2036", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDA6MDAgUE0gRVNUIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T17:00:00.000Z" } }, { "_sort": "2024-01-02T17:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T17:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2037", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDA6MDAgUE0gKzAxMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-02T10:30:00.000Z" } }, { "_sort": "2024-01-02T10:30:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-02T10:30:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2038", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEzOjAwIFBNIn0" }, "error": "invalid_cursor" }, { "name": "case-2039", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEzOjAwIFBNIEdNVCJ9" }, "error": "invalid_cursor" }, { "name": "case-2040", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEzOjAwIFBNIFVUQyswMTozMCJ9" }, "error": "invalid_cursor" }, { "name": "case-2041", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEzOjAwIFBNIEVTVCJ9" }, "error": "invalid_cursor" }, { "name": "case-2042", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQsMSwyIDEzOjAwIFBNICswMTMwIn0" }, "error": "invalid_cursor" }, { "name": "case-2043", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDEgIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2044", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDFcdCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2045", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDFcbiJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2046", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDHvu78ifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2047", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDEgKGlnbm9yZWQpIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2048", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDEgZ2FyYmFnZSJ9" }, "error": "invalid_cursor" }, { "name": "case-2049", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDEtMDFcdTAwMDBpZ25vcmVkIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-01-01T00:00:00.000Z" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-01-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2050", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6WyIyMDI0LTAyLTI5Il19" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T00:00:00.000Z" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2051", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6WyIyMDI0LTAyLTI5Il19" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T00:00:00.000Z" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2052", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6WyIyMDI0LTAyLTI5IiwiMjAyNC0wMy0wMSJdfQ" }, "error": "invalid_cursor" }, { "name": "case-2053", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6WyIiXX0" }, "error": "invalid_cursor" }, { "name": "case-2054", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6eyJ4IjoieCJ9fQ" }, "error": "invalid_cursor" }, { "name": "case-2055", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6eyJ0b1N0cmluZyI6IngifX0" }, "error": "invalid_cursor" }, { "name": "case-2056", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6ImludmFsaWQifQ" }, "error": "invalid_cursor" }, { "name": "case-2057", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6eyJ0b1N0cmluZyI6IngifX0" }, "error": "invalid_cursor" }, { "name": "case-2058", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ik1hcmNoIDEgMjAyNCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2059", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMzAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2060", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDItMjlUMjQ6MDA6MDBaIn0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2061", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6Ii0wMDAwMDAtMDItMDMifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2001-02-03T00:00:00.000Z" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2001-02-03T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2062", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6WyIyMDI0IiwiMyIsIjEiXX0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2063", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDMtMDFUMDE6MDA6MDArMDI6MDAifQ" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-02-29T23:00:00.000Z" } }, { "_sort": "2024-02-29T23:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-02-29T23:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2064", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDMtMDF0MDA6MDB6In0" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2065", "query": { "sort": "options.expirationDate", "cursor": "eyJzb3J0Ijoib3B0aW9ucy5leHBpcmF0aW9uRGF0ZSIsInR5cGUiOiJyZXBvIiwiaWQiOiIxMTExMTExMTExMTExMTExMTExMTExMTEiLCJ2YWx1ZSI6IjIwMjQtMDMtMDFUMDA6MDBaXHUwMDAwaWdub3JlZCJ9" }, "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$options.expirationDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "2024-03-01T00:00:00.000Z" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": { "$gt": "repo" } }, { "_sort": "2024-03-01T00:00:00.000Z", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2066", "query": { "type": [ "repo" ] }, "rawQuery": "type[]=repo", "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_type": [ "repo" ], "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_type": [ "repo" ], "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2067", "query": { "type": [ "repo" ] }, "rawQuery": "type[0]=repo", "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_type": [ "repo" ], "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_type": [ "repo" ], "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2068", "query": { "type": [ "repo", "gist" ] }, "rawQuery": "type[]=repo&type[]=gist", "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2069", "query": { "type": { "x": "repo" } }, "rawQuery": "type[x]=repo", "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2070", "query": { "attention": [ "true" ] }, "rawQuery": "attention[]=true", "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2071", "query": { "attention": "true" }, "rawQuery": "attention=true", "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_attention": true, "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_attention": true, "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2072", "query": { "statuses": [ "" ] }, "rawQuery": "statuses[]=", "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2073", "query": { "statuses": [ "ready", "removed" ] }, "rawQuery": "statuses[]=ready&statuses[]=removed", "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "removed" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "removed" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2074", "query": { "statuses": [ "error", "ready" ] }, "rawQuery": "statuses[1]=ready&statuses[0]=error", "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "error", "ready" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "error", "ready" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2075", "query": { "statuses": { "x": "ready" } }, "rawQuery": "statuses[x]=ready", "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2076", "query": { "q": [ "first", "second" ] }, "rawQuery": "q[]=first&q[]=second", "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] }, "$or": [ { "_anonymousId": { "$regex": "first,second", "$options": "i" } }, { "_label": { "$regex": "first,second", "$options": "i" } }, { "_source": { "$regex": "first,second", "$options": "i" } }, { "conference": { "$regex": "first,second", "$options": "i" } } ] } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] }, "$or": [ { "_anonymousId": { "$regex": "first,second", "$options": "i" } }, { "_label": { "$regex": "first,second", "$options": "i" } }, { "_source": { "$regex": "first,second", "$options": "i" } }, { "conference": { "$regex": "first,second", "$options": "i" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2077", "query": { "q": { "x": "text" } }, "rawQuery": "q[x]=text", "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] }, "$or": [ { "_anonymousId": { "$regex": "\\[object Object\\]", "$options": "i" } }, { "_label": { "$regex": "\\[object Object\\]", "$options": "i" } }, { "_source": { "$regex": "\\[object Object\\]", "$options": "i" } }, { "conference": { "$regex": "\\[object Object\\]", "$options": "i" } } ] } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] }, "$or": [ { "_anonymousId": { "$regex": "\\[object Object\\]", "$options": "i" } }, { "_label": { "$regex": "\\[object Object\\]", "$options": "i" } }, { "_source": { "$regex": "\\[object Object\\]", "$options": "i" } }, { "conference": { "$regex": "\\[object Object\\]", "$options": "i" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2078", "query": { "q": "%FF" }, "rawQuery": "q=%FF", "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] }, "$or": [ { "_anonymousId": { "$regex": "%FF", "$options": "i" } }, { "_label": { "$regex": "%FF", "$options": "i" } }, { "_source": { "$regex": "%FF", "$options": "i" } }, { "conference": { "$regex": "%FF", "$options": "i" } } ] } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] }, "$or": [ { "_anonymousId": { "$regex": "%FF", "$options": "i" } }, { "_label": { "$regex": "%FF", "$options": "i" } }, { "_source": { "$regex": "%FF", "$options": "i" } }, { "conference": { "$regex": "%FF", "$options": "i" } } ] } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2079", "query": { "sort": [ "" ] }, "rawQuery": "sort[]=", "error": "invalid_sort" }, { "name": "case-2080", "query": { "sort": [ "_name" ] }, "rawQuery": "sort[]=_name", "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$_anonymousId", "" ] } } }, { "$set": { "_sort": { "$toLower": "$_sort" } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2081", "query": { "sort": [ "status", "_name" ] }, "rawQuery": "sort[1]=_name&sort[0]=status", "error": "invalid_sort" }, { "name": "case-2082", "query": { "sort": { "x": "_name" } }, "rawQuery": "sort[x]=_name", "error": "invalid_sort" }, { "name": "case-2083", "query": { "limit": [ "2" ] }, "rawQuery": "limit[]=2", "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 3 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2084", "query": { "limit": [ "2" ] }, "rawQuery": "limit[0]=2", "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 3 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2085", "query": { "limit": [ "1", "2" ] }, "rawQuery": "limit[1]=2&limit[0]=1", "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2086", "query": { "limit": { "x": "2" } }, "rawQuery": "limit[x]=2", "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$anonymizeDate", "1970-01-01T00:00:00.000Z" ] } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$sort": { "_sort": -1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2087", "query": { "cursor": [ "" ] }, "rawQuery": "cursor[]=", "error": "invalid_cursor" }, { "name": "case-2088", "query": { "cursor": { "x": "3" } }, "rawQuery": "cursor[x]=3", "error": "invalid_cursor" }, { "name": "case-2089", "query": { "cursor": { "toString": "3" } }, "rawQuery": "cursor[toString]=3", "error": "invalid_cursor" }, { "name": "case-2090", "query": { "sort": { "toString": "3" } }, "rawQuery": "sort[toString]=3", "error": "invalid_query_value" }, { "name": "case-2091", "query": { "limit": { "toString": "3" } }, "rawQuery": "limit[toString]=3", "error": "invalid_query_value" }, { "name": "case-2092", "query": { "type": { "toString": "3" } }, "rawQuery": "type[toString]=3", "error": "invalid_query_value" }, { "name": "case-2093", "query": { "statuses": { "toString": "3" } }, "rawQuery": "statuses[toString]=3", "error": "invalid_query_value" }, { "name": "case-2094", "query": { "q": { "toString": "3" } }, "rawQuery": "q[toString]=3", "error": "invalid_query_value" }, { "name": "case-2095", "query": { "sort": "_name", "cursor": [ "eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOiJhYmMifQ" ] }, "rawQuery": "sort=_name&cursor[]=eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOiJhYmMifQ", "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$_anonymousId", "" ] } } }, { "$set": { "_sort": { "$toLower": "$_sort" } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": "abc" } }, { "_sort": "abc", "_type": { "$gt": "repo" } }, { "_sort": "abc", "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2096", "query": { "sort": "_name", "cursor": [ "eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOjQyfQ" ] }, "rawQuery": "sort=_name&cursor[]=eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOjQyfQ", "expected": [ { "$match": { "$or": [ { "owner": "111111111111111111111111" } ] } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "repoId": 1, "source": { "fullName": "$source.repositoryName", "commit": "$source.commit" }, "coauthors": 1, "size": 1, "role": { "$cond": [ { "$eq": [ "$owner", "111111111111111111111111" ] }, "owner", "coauthor" ] }, "_type": { "$literal": "repo" }, "_anonymousId": { "$ifNull": [ "$repoId", "" ] }, "_source": "$source.repositoryName", "_fallbackLabel": "$source.repositoryName" } }, { "$unionWith": { "coll": "anonymizedpullrequests", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "pullRequestId": 1, "source": { "repositoryFullName": "$source.repositoryFullName", "pullRequestId": "$source.pullRequestId" }, "_type": { "$literal": "pr" }, "_anonymousId": { "$ifNull": [ "$pullRequestId", "" ] }, "_source": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] }, "_fallbackLabel": { "$concat": [ { "$ifNull": [ "$source.repositoryFullName", "" ] }, "#", { "$toString": "$source.pullRequestId" } ] } } } ] } }, { "$unionWith": { "coll": "anonymizedgists", "pipeline": [ { "$match": { "owner": "111111111111111111111111" } }, { "$project": { "_id": 1, "status": 1, "statusMessage": 1, "anonymizeDate": 1, "lastView": 1, "pageView": { "$ifNull": [ "$pageView", 0 ] }, "options": 1, "conference": 1, "gistId": 1, "source": { "gistId": "$source.gistId" }, "isPublic": "$gist.isPublic", "_type": { "$literal": "gist" }, "_anonymousId": { "$ifNull": [ "$gistId", "" ] }, "_source": "$source.gistId", "_fallbackLabel": { "$concat": [ "Gist ", { "$ifNull": [ "$gistId", "$source.gistId" ] } ] } } } ] } }, { "$lookup": { "from": "dashboardnames", "let": { "type": "$_type", "id": "$_anonymousId" }, "pipeline": [ { "$match": { "owner": "111111111111111111111111", "$expr": { "$and": [ { "$eq": [ "$type", "$$type" ] }, { "$eq": [ "$artifactId", "$$id" ] } ] } } }, { "$project": { "name": 1 } } ], "as": "_privateName" } }, { "$set": { "projectName": { "$ifNull": [ { "$arrayElemAt": [ "$_privateName.name", 0 ] }, "" ] } } }, { "$unset": "_privateName" }, { "$set": { "status": { "$cond": [ { "$and": [ { "$eq": [ "$status", "ready" ] }, { "$ne": [ "$options.expirationMode", "never" ] }, { "$ne": [ { "$ifNull": [ "$options.expirationDate", null ] }, null ] }, { "$lte": [ "$options.expirationDate", "2026-01-02T03:04:05.000Z" ] } ] }, "expired", "$status" ] }, "_label": { "$cond": [ { "$ne": [ "$projectName", "" ] }, "$projectName", { "$ifNull": [ "$_fallbackLabel", "$_anonymousId" ] } ] } } }, { "$set": { "_statusKey": { "$switch": { "branches": [ { "case": { "$in": [ "$status", [ "ready", "error" ] ] }, "then": "$status" }, { "case": { "$in": [ "$status", [ "expired", "expiring" ] ] }, "then": "expired" }, { "case": { "$in": [ "$status", [ "removed", "removing" ] ] }, "then": "removed" } ], "default": "progress" } } } }, { "$set": { "_attention": { "$or": [ { "$eq": [ "$status", "error" ] }, { "$eq": [ "$_anonymousId", "" ] }, { "$and": [ { "$eq": [ "$_statusKey", "progress" ] }, { "$ne": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, null ] }, { "$lt": [ { "$ifNull": [ "$anonymizeDate", "$lastView" ] }, "2026-01-02T01:04:05.000Z" ] } ] } ] }, "_sort": { "$ifNull": [ "$_anonymousId", "" ] } } }, { "$set": { "_sort": { "$toLower": "$_sort" } } }, { "$facet": { "totals": [ { "$group": { "_id": null, "total": { "$sum": 1 }, "attention": { "$sum": { "$cond": [ "$_attention", 1, 0 ] } } } } ], "filtered": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$count": "count" } ], "items": [ { "$match": { "_statusKey": { "$in": [ "ready", "progress", "error", "expired" ] } } }, { "$match": { "$or": [ { "_sort": { "$gt": 42 } }, { "_sort": 42, "_type": { "$gt": "repo" } }, { "_sort": 42, "_type": "repo", "_id": { "$gt": "111111111111111111111111" } } ] } }, { "$sort": { "_sort": 1, "_type": 1, "_id": 1 } }, { "$limit": 51 } ] } } ], "sortOrder": [ "_sort", "_type", "_id" ] }, { "name": "case-2097", "query": { "sort": "_name", "cursor": [ "eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOm51bGx9" ] }, "rawQuery": "sort=_name&cursor[]=eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOm51bGx9", "error": "invalid_cursor" }, { "name": "case-2098", "query": { "sort": "_name", "cursor": [ "eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOnRydWV9" ] }, "rawQuery": "sort=_name&cursor[]=eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOnRydWV9", "error": "invalid_cursor" }, { "name": "case-2099", "query": { "sort": "_name", "cursor": [ "eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOmZhbHNlfQ" ] }, "rawQuery": "sort=_name&cursor[]=eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOmZhbHNlfQ", "error": "invalid_cursor" }, { "name": "case-2100", "query": { "sort": "_name", "cursor": [ "eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOnt9fQ" ] }, "rawQuery": "sort=_name&cursor[]=eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOnt9fQ", "error": "invalid_cursor" }, { "name": "case-2101", "query": { "sort": "_name", "cursor": [ "eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOnsiJG5lIjpudWxsfX0" ] }, "rawQuery": "sort=_name&cursor[]=eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOnsiJG5lIjpudWxsfX0", "error": "invalid_cursor" }, { "name": "case-2102", "query": { "sort": "_name", "cursor": [ "eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOltdfQ" ] }, "rawQuery": "sort=_name&cursor[]=eyJzb3J0IjoiX25hbWUiLCJ0eXBlIjoicmVwbyIsImlkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwidmFsdWUiOltdfQ", "error": "invalid_cursor" } ] }