Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(today): keep unowned P0 reports out of the briefing (#111869)

Vojta Bartoš060694812177
diff --git a/frontend/src/scenes/project-homepage/today/todayLogic.test.ts b/frontend/src/scenes/project-homepage/today/todayLogic.test.ts
index b843cceadce9..c0952179eb76 100644
--- a/frontend/src/scenes/project-homepage/today/todayLogic.test.ts
+++ b/frontend/src/scenes/project-homepage/today/todayLogic.test.ts
@@ -351,7 +351,10 @@ describe('todayLogic', () => {
logic.mount()
await expectLogic(logic).toFinishAllListeners().toMatchValues({ reports, moreReportCount: 7 })
- expect(Object.fromEntries(listParams!.entries())).toEqual({ limit: String(TOP_REPORT_COUNT) })
+ expect(Object.fromEntries(listParams!.entries())).toEqual({
+ limit: String(TOP_REPORT_COUNT),
+ include_unowned: 'false',
+ })
})
it.each([
@@ -384,7 +387,10 @@ describe('todayLogic', () => {
moreReportsInInbox: remaining,
canLoadMoreReports: false,
})
- expect(Object.fromEntries(listParams!.entries())).toEqual({ limit: String(MORE_REPORTS_LIMIT) })
+ expect(Object.fromEntries(listParams!.entries())).toEqual({
+ limit: String(MORE_REPORTS_LIMIT),
+ include_unowned: 'false',
+ })
// A refresh writes a briefing over other reports, so the loaded list folds back up.
await expectLogic(logic, () => {
diff --git a/frontend/src/scenes/project-homepage/today/todayLogic.ts b/frontend/src/scenes/project-homepage/today/todayLogic.ts
index 8da98215bb8f..0c506ec6cb57 100644
--- a/frontend/src/scenes/project-homepage/today/todayLogic.ts
+++ b/frontend/src/scenes/project-homepage/today/todayLogic.ts
@@ -547,8 +547,10 @@ export const todayLogic = kea<todayLogicType>([
return { results: [], count: 0 }
}
// The person's own reports, ranked and counted the way the Today briefing ranks them.
+ // A P0 nobody owns ranks above every one of them, so Today leaves it to the Inbox.
const response = await signalsReportsForYouRetrieve(String(values.currentProjectId), {
limit: TOP_REPORT_COUNT,
+ include_unowned: false,
})
// Today passes reports to the Inbox's helpers, which take the handwritten SignalReport. The
// generated row type is wider (string status and priority, read-only arrays), so the cast
@@ -567,6 +569,7 @@ export const todayLogic = kea<todayLogicType>([
}
const response = await signalsReportsForYouRetrieve(String(values.currentProjectId), {
limit: MORE_REPORTS_LIMIT,
+ include_unowned: false,
})
return { results: response.results as unknown as SignalReport[], count: response.count }
},
diff --git a/products/signals/backend/briefing_reports.py b/products/signals/backend/briefing_reports.py
index 682e08728e10..0f888d949a54 100644
--- a/products/signals/backend/briefing_reports.py
+++ b/products/signals/backend/briefing_reports.py
@@ -336,56 +336,69 @@ def _briefing_pick(candidates: Sequence[_BriefingCandidate], limit: int | None)
return ranked if limit is None else ranked[:limit]
-def _relation_to_person(team_id: int, user: User) -> Case:
+def _relation_to_person(team_id: int, user: User, *, include_unowned: bool) -> Case:
"""A report's strongest `BriefingReportRelation` to the person, or NULL when it has none.
Reads the `briefing_priority` annotation, so the queryset must carry `_latest_priority()` first.
+ `include_unowned` decides whether a P0 nobody owns counts as a relation. It belongs to the project
+ rather than to the person, so a surface that only pushes a person's own work leaves it out. Leaving
+ it out also drops the claim and implementation-PR subqueries from the expression, which Postgres
+ evaluates for every open report before the relation filter applies.
"""
names_me = _names_person(team_id, user)
claimed = reports_with_active_claim(team_id=team_id, actor=ArtefactAttribution.from_user(user.id))
- unowned = ~reports_with_active_claim(team_id=team_id) & ~implementation_pr_report_filter(
- team_id=team_id, active_only=True
- )
- return Case(
+ branches = [
When(
names_me & Q(status=SignalReport.Status.PENDING_INPUT), then=Value(BriefingReportRelation.WAITING_FOR_YOU)
),
When(claimed, then=Value(BriefingReportRelation.CLAIMED)),
When(names_me & Q(status=SignalReport.Status.READY), then=Value(BriefingReportRelation.SUGGESTED_REVIEWER)),
- When(
- unowned
- & Q(
- status=SignalReport.Status.READY,
- latest_actionability=ActionabilityChoice.IMMEDIATELY_ACTIONABLE.value,
- briefing_priority="P0",
- ),
- then=Value(BriefingReportRelation.URGENT_UNOWNED),
- ),
- default=Value(None),
- output_field=CharField(),
- )
+ ]
+ if include_unowned:
+ unowned = ~reports_with_active_claim(team_id=team_id) & ~implementation_pr_report_filter(
+ team_id=team_id, active_only=True
+ )
+ branches.append(
+ When(
+ unowned
+ & Q(
+ status=SignalReport.Status.READY,
+ latest_actionability=ActionabilityChoice.IMMEDIATELY_ACTIONABLE.value,
+ briefing_priority="P0",
+ ),
+ then=Value(BriefingReportRelation.URGENT_UNOWNED),
+ )
+ )
+ return Case(*branches, default=Value(None), output_field=CharField())
-def _reports_for_person(team_id: int, user: User) -> QuerySet[SignalReport]:
+def _reports_for_person(team_id: int, user: User, *, include_unowned: bool) -> QuerySet[SignalReport]:
"""The open reports that are for this person: the set the briefing ranks and the Inbox counts."""
return (
_open_reports(team_id)
.annotate(briefing_priority=_latest_priority())
- .annotate(briefing_relation=_relation_to_person(team_id, user))
+ .annotate(briefing_relation=_relation_to_person(team_id, user, include_unowned=include_unowned))
.filter(briefing_relation__isnull=False)
)
-def reports_for_briefing(*, team_id: int, user_id: int, limit: int | None = None) -> list[BriefingReport]:
+def reports_for_briefing(
+ *, team_id: int, user_id: int, limit: int | None = None, include_unowned: bool = True
+) -> list[BriefingReport]:
"""Open, actionable reports for one person, in briefing order, each tagged with its strongest relation.
A report appears once, under the first `BriefingReportRelation` that matches. One query reads
every candidate with its relation, priority and served scores, up to `_CANDIDATE_LIMIT`, so the
model ranks the whole set and not only the newest reports. Urgent-unowned keeps only P0.
`_briefing_pick` orders the candidates and `limit` keeps the best of them.
+
+ `include_unowned` false drops the urgent-unowned relation, so the result holds only reports the
+ person is named on or claimed. The Today briefing asks for that: a P0 nobody owns sorts above
+ every other item, because P0 is the first key in `_briefing_pick` and is exempt from the
+ dismiss-wrong filter, so one unowned report would take the top of every briefing in the project.
"""
rows = (
- _reports_for_person(team_id, User.objects.get(id=user_id))
+ _reports_for_person(team_id, User.objects.get(id=user_id), include_unowned=include_unowned)
.annotate(briefing_heads=_latest_served_heads())
.order_by("-updated_at")
.values_list("id", "updated_at", "briefing_relation", "briefing_priority", "briefing_heads")[:_CANDIDATE_LIMIT]
@@ -438,17 +451,20 @@ class OpenReportCounts:
in_project: int
-def open_report_counts(*, team_id: int, user: User, exclude_report_ids: Sequence[str] = ()) -> OpenReportCounts:
+def open_report_counts(
+ *, team_id: int, user: User, exclude_report_ids: Sequence[str] = (), include_unowned: bool = True
+) -> OpenReportCounts:
"""How many open, actionable reports the project has, and how many of them are for this person.
- `for_person` counts the same set `reports_for_briefing` ranks (named, claimed, or an unowned P0),
- so a "more for you" number agrees with the list it follows. `exclude_report_ids` leaves out the
- reports already on screen; one that is resolved or not for the person was never in the set, so
- it is not subtracted from it.
+ `for_person` counts the same set `reports_for_briefing` ranks, so a "more for you" number agrees
+ with the list it follows; pass the `include_unowned` the list was built with to keep that true.
+ `in_project` ignores the relation either way, so a P0 nobody owns is still counted there.
+ `exclude_report_ids` leaves out the reports already on screen; one that is resolved or not for the
+ person was never in the set, so it is not subtracted from it.
"""
excluded = list(exclude_report_ids)
in_project = _open_reports(team_id).exclude(id__in=excluded).count()
- for_person = _reports_for_person(team_id, user).exclude(id__in=excluded).count()
+ for_person = _reports_for_person(team_id, user, include_unowned=include_unowned).exclude(id__in=excluded).count()
return OpenReportCounts(for_person=for_person, in_project=in_project)
diff --git a/products/signals/backend/serializers.py b/products/signals/backend/serializers.py
index 2446b46cfc55..066afd9db114 100644
--- a/products/signals/backend/serializers.py
+++ b/products/signals/backend/serializers.py
@@ -1700,6 +1700,15 @@ class SignalReportsForYouQuerySerializer(serializers.Serializer):
max_value=MAX_FOR_YOU_REPORTS,
help_text=f"How many of the top reports to return, 1 to {MAX_FOR_YOU_REPORTS}. Defaults to 5.",
)
+ include_unowned = serializers.BooleanField(
+ required=False,
+ default=True,
+ help_text=(
+ "Whether to include P0 reports that nobody owns. These belong to the project rather than to "
+ "one person, and they rank above everything else, so a surface that only shows a person's own "
+ "work passes false. Defaults to true."
+ ),
+ )
class SignalReportsForYouResponseSerializer(serializers.Serializer):
@@ -1708,13 +1717,15 @@ class SignalReportsForYouResponseSerializer(serializers.Serializer):
help_text=(
"The open, actionable reports that matter most to the current user, best first: reports "
"waiting for their input, reports they claimed, reports naming them as a reviewer, then P0 "
- "reports that nobody owns. The Today briefing ranks reports the same way."
+ "reports that nobody owns unless `include_unowned` is false. The Today briefing ranks "
+ "reports the same way."
),
)
count = serializers.IntegerField(
help_text=(
"How many open reports are for the current user: the reports in `results`, plus the other "
- "open, actionable reports that name them as a reviewer."
+ "open, actionable reports that name them as a reviewer. Counted over the same set as "
+ "`results`, so it follows `include_unowned` too."
),
)
diff --git a/products/signals/backend/test/test_briefing_reports.py b/products/signals/backend/test/test_briefing_reports.py
index 61df82203564..24675d8da004 100644
--- a/products/signals/backend/test/test_briefing_reports.py
+++ b/products/signals/backend/test/test_briefing_reports.py
@@ -52,6 +52,24 @@ class TestReportsForBriefing(BaseTest):
)
return report
+ def _named_report(self, title: str) -> SignalReport:
+ report = SignalReport.objects.create(
+ team=self.team,
+ status=SignalReport.Status.READY,
+ title=title,
+ summary="Summary",
+ signal_count=1,
+ total_weight=1.0,
+ latest_actionability=ActionabilityChoice.IMMEDIATELY_ACTIONABLE.value,
+ )
+ SignalReportArtefact.objects.create(
+ team=self.team,
+ report=report,
+ type=SignalReportArtefact.ArtefactType.SUGGESTED_REVIEWERS,
+ content=json.dumps([{"github_login": "reviewer", "user_uuid": str(self.user.uuid)}]),
+ )
+ return report
+
def _score(self, report: SignalReport, pr_merged: float, *, readable: bool, age: timedelta) -> None:
served = RankingModelResult(
model_name="report_embeddings",
@@ -133,9 +151,28 @@ class TestReportsForBriefing(BaseTest):
team_id=self.team.id, user=self.user, exclude_report_ids=[str(shown_open.id), str(resolved.id)]
)
- # An unowned P0 is for the person the same way the briefing ranks it, so both counts agree.
+ # By default an unowned P0 is for the person the same way the briefing ranks it, so both counts agree.
assert (counts.in_project, counts.for_person) == (1, 1)
+ @parameterized.expand([("included", True, {"Mine", "Nobody's P0"}), ("excluded", False, {"Mine"})])
+ def test_include_unowned_decides_whether_a_p0_nobody_owns_is_a_candidate(
+ self, _name: str, include_unowned: bool, expected: set[str]
+ ) -> None:
+ self._named_report("Mine")
+ self._urgent_report("Nobody's P0")
+
+ reports = reports_for_briefing(team_id=self.team.id, user_id=self.user.id, include_unowned=include_unowned)
+
+ assert {report.title for report in reports} == expected
+
+ def test_excluding_unowned_reports_leaves_them_in_the_project_count_only(self) -> None:
+ self._named_report("Mine")
+ self._urgent_report("Nobody's P0")
+
+ counts = open_report_counts(team_id=self.team.id, user=self.user, include_unowned=False)
+
+ assert (counts.in_project, counts.for_person) == (2, 1)
+
def test_merge_chance_comes_from_the_latest_readable_served_score(self) -> None:
rescored = self._urgent_report("Rescored")
self._score(rescored, 0.1, readable=True, age=timedelta(days=2))
diff --git a/products/signals/backend/test/test_signal_report_api.py b/products/signals/backend/test/test_signal_report_api.py
index fe670fa71393..7a8ff85fb6bd 100644
--- a/products/signals/backend/test/test_signal_report_api.py
+++ b/products/signals/backend/test/test_signal_report_api.py
@@ -1249,6 +1249,28 @@ class TestSignalReportListAPI(APIBaseTest):
assert [row["id"] for row in body["results"]] == [str(reviewing.id)]
assert body["count"] == 2
+ def test_for_you_excludes_unowned_p0_reports_when_asked(self):
+ mine = self._create_report(title="Names me as reviewer")
+ SignalReportArtefact.objects.create(
+ team=self.team,
+ report=mine,
+ type=SignalReportArtefact.ArtefactType.SUGGESTED_REVIEWERS,
+ content=json.dumps([{"user_uuid": str(self.user.uuid)}]),
+ )
+ unowned = self._create_report(title="Nobody owns it", latest_actionability="immediately_actionable")
+ self._priority_artefact(unowned, priority="P0")
+
+ with_unowned = self.client.get(f"{self._list_url()}for_you/")
+ without_unowned = self.client.get(f"{self._list_url()}for_you/?include_unowned=false")
+
+ assert with_unowned.status_code == status.HTTP_200_OK
+ assert without_unowned.status_code == status.HTTP_200_OK
+ # The P0 leads by default, because priority is the first ranking key.
+ assert [row["id"] for row in with_unowned.json()["results"]] == [str(unowned.id), str(mine.id)]
+ assert with_unowned.json()["count"] == 2
+ assert [row["id"] for row in without_unowned.json()["results"]] == [str(mine.id)]
+ assert without_unowned.json()["count"] == 1
+
def test_is_suggested_reviewer_uses_latest_reviewers_row(self):
# suggested_reviewers is append-only: an older row listing the user must not keep them
# flagged after a newer row drops them (latest-wins).
diff --git a/products/signals/backend/views.py b/products/signals/backend/views.py
index 5029b67b7398..6feed33b43fc 100644
--- a/products/signals/backend/views.py
+++ b/products/signals/backend/views.py
@@ -2452,22 +2452,30 @@ class SignalReportViewSet(
description=(
"The open, actionable reports for the current user, best first, and how many there are in "
"total. Uses the same ranking and count as the Today briefing, so this is the short list to "
- "show someone who asks what needs them."
+ "show someone who asks what needs them. Pass `include_unowned=false` to leave out the P0 "
+ "reports nobody owns, which belong to the project rather than to this person."
),
)
@action(detail=False, methods=["get"], url_path="for_you", required_scopes=["task:read"])
def for_you(self, request: ValidatedRequest, *args, **kwargs) -> Response:
user = cast(User, request.user)
+ include_unowned = request.validated_query_data["include_unowned"]
ranked_ids = [
report.report_id
for report in reports_for_briefing(
- team_id=self.team_id, user_id=user.id, limit=request.validated_query_data["limit"]
+ team_id=self.team_id,
+ user_id=user.id,
+ limit=request.validated_query_data["limit"],
+ include_unowned=include_unowned,
)
]
by_id = {str(report.id): report for report in self.get_queryset().filter(id__in=ranked_ids)}
reports = [by_id[report_id] for report_id in ranked_ids if report_id in by_id]
more = open_report_counts(
- team_id=self.team_id, user=user, exclude_report_ids=[str(report.id) for report in reports]
+ team_id=self.team_id,
+ user=user,
+ exclude_report_ids=[str(report.id) for report in reports],
+ include_unowned=include_unowned,
)
rows = self._render_report_rows(reports, include_source_metadata=True)
return Response({"results": rows, "count": len(rows) + more.for_person})
diff --git a/products/signals/frontend/generated/api.schemas.ts b/products/signals/frontend/generated/api.schemas.ts
index ceac1e13945e..04278d775546 100644
--- a/products/signals/frontend/generated/api.schemas.ts
+++ b/products/signals/frontend/generated/api.schemas.ts
@@ -3097,9 +3097,9 @@ export interface SignalReportBulkStateResponseApi {
}
export interface SignalReportsForYouResponseApi {
- /** The open, actionable reports that matter most to the current user, best first: reports waiting for their input, reports they claimed, reports naming them as a reviewer, then P0 reports that nobody owns. The Today briefing ranks reports the same way. */
+ /** The open, actionable reports that matter most to the current user, best first: reports waiting for their input, reports they claimed, reports naming them as a reviewer, then P0 reports that nobody owns unless `include_unowned` is false. The Today briefing ranks reports the same way. */
results: SignalReportListApi[]
- /** How many open reports are for the current user: the reports in `results`, plus the other open, actionable reports that name them as a reviewer. */
+ /** How many open reports are for the current user: the reports in `results`, plus the other open, actionable reports that name them as a reviewer. Counted over the same set as `results`, so it follows `include_unowned` too. */
count: number
}
@@ -7639,6 +7639,10 @@ export type SignalsReportsAvailableReviewersRetrieve200 = {
}
export type SignalsReportsForYouRetrieveParams = {
+ /**
+ * Whether to include P0 reports that nobody owns. These belong to the project rather than to one person, and they rank above everything else, so a surface that only shows a person's own work passes false. Defaults to true.
+ */
+ include_unowned?: boolean
/**
* How many of the top reports to return, 1 to 20. Defaults to 5.
* @minimum 1
diff --git a/products/signals/frontend/generated/api.ts b/products/signals/frontend/generated/api.ts
index 9dbc4300ba48..54d8b90d4b39 100644
--- a/products/signals/frontend/generated/api.ts
+++ b/products/signals/frontend/generated/api.ts
@@ -1203,7 +1203,7 @@ export const getSignalsReportsForYouRetrieveUrl = (projectId: string, params?: S
}
/**
- * The open, actionable reports for the current user, best first, and how many there are in total. Uses the same ranking and count as the Today briefing, so this is the short list to show someone who asks what needs them.
+ * The open, actionable reports for the current user, best first, and how many there are in total. Uses the same ranking and count as the Today briefing, so this is the short list to show someone who asks what needs them. Pass `include_unowned=false` to leave out the P0 reports nobody owns, which belong to the project rather than to this person.
* @summary List the reports that matter most to the current user
*/
export const signalsReportsForYouRetrieve = async (
diff --git a/products/today/backend/logic/briefings.py b/products/today/backend/logic/briefings.py
index 9b7a2d225259..d504f12795b6 100644
--- a/products/today/backend/logic/briefings.py
+++ b/products/today/backend/logic/briefings.py
@@ -188,7 +188,9 @@ class InboxCounts:
def _inbox_counts(team: Team, user: User, shown: list[FactSheetItem]) -> InboxCounts:
shown_reports = [item.key.split(":", 1)[1] for item in shown if item.group == ItemGroup.REPORT]
try:
- counts = signals.open_report_counts(team_id=team.id, user=user, exclude_report_ids=shown_reports)
+ counts = signals.open_report_counts(
+ team_id=team.id, user=user, exclude_report_ids=shown_reports, include_unowned=False
+ )
except Exception as error:
capture_exception(error, {"team_id": team.id, "product": "today"})
return InboxCounts(more_for_you=0, open_in_project=0)
diff --git a/products/today/backend/logic/generate.py b/products/today/backend/logic/generate.py
index 396ccc197916..805d19d8642a 100644
--- a/products/today/backend/logic/generate.py
+++ b/products/today/backend/logic/generate.py
@@ -57,7 +57,9 @@ def _prepare(team_id: int, briefing_id: str) -> _PreparedRun | None:
return None
briefing.status = BriefingStatus.WRITING
briefing.save(update_fields=["status"])
- reports = signals.reports_for_briefing(team_id=team.id, user_id=user.id, limit=MAX_ITEMS)
+ # A P0 nobody owns belongs to the project, not to this person, and would sort above every
+ # item that is actually theirs. It stays in the Inbox and in `open_reports_count`.
+ reports = signals.reports_for_briefing(team_id=team.id, user_id=user.id, limit=MAX_ITEMS, include_unowned=False)
fact_sheet = fact_sheet_for_reports(reports, team.id)
summaries = {item.key: report.summary for item, report in zip(fact_sheet.items, reports, strict=True)}
prompt = build_prompt(briefing, user, fact_sheet, summaries, recent_ready_briefings(briefing, RECENT_BRIEFINGS))
diff --git a/products/today/backend/logic/prompts/briefing.md.j2 b/products/today/backend/logic/prompts/briefing.md.j2
index d53444280759..81ba0f543af1 100644
--- a/products/today/backend/logic/prompts/briefing.md.j2
+++ b/products/today/backend/logic/prompts/briefing.md.j2
@@ -15,7 +15,6 @@ Each item is a self-driving report with its `key`, the `reason` it is here, its
- `waiting_for_you`: the report waits for the person's input.
- `claimed_by_you`: the person claimed the report.
- `suggested_reviewer`: the person is a suggested reviewer of the report.
-- `urgent_for_project`: a P0 report that nobody owns.
<items>
{{ items_json }}
diff --git a/products/today/backend/tests/test_generate.py b/products/today/backend/tests/test_generate.py
index 5846daa389f9..c31fbb5033f8 100644
--- a/products/today/backend/tests/test_generate.py
+++ b/products/today/backend/tests/test_generate.py
@@ -121,11 +121,12 @@ class TestWriteBriefing(TodayTeamScopedTestMixin, BaseTest):
client.with_options.return_value.__aenter__.return_value = opened
with (
patch(ON_TEST_THREAD, _on_test_thread),
- patch(REPORTS, return_value=self.reports),
+ patch(REPORTS, return_value=self.reports) as reports,
patch(CLIENT, return_value=client),
patch(FLAG, return_value=True),
):
async_to_sync(write_briefing)(team_id=self.team.id, briefing_id=str(self.briefing.id))
+ self.reports_asked_for = reports.call_args.kwargs if reports.call_args else {}
return create
def test_the_items_are_the_ranked_reports_and_the_llm_writes_only_the_text(self) -> None:
@@ -150,6 +151,13 @@ class TestWriteBriefing(TodayTeamScopedTestMixin, BaseTest):
assert prompt.index("report:b") < prompt.index("report:a")
assert "Yesterday's headline" in prompt
+ def test_the_briefing_asks_for_the_persons_own_reports_only(self) -> None:
+ self._run(_answer())
+
+ # A P0 nobody owns sorts above every item that is the person's, so the briefing leaves it to
+ # the Inbox and to the open-in-project count.
+ assert self.reports_asked_for["include_unowned"] is False
+
def test_no_reports_means_no_llm_call(self) -> None:
self.reports = []
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index 0d1e9ce79ab2..04206983f7f0 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -95893,9 +95893,9 @@ export namespace Schemas {
}
export interface SignalReportsForYouResponse {
- /** The open, actionable reports that matter most to the current user, best first: reports waiting for their input, reports they claimed, reports naming them as a reviewer, then P0 reports that nobody owns. The Today briefing ranks reports the same way. */
+ /** The open, actionable reports that matter most to the current user, best first: reports waiting for their input, reports they claimed, reports naming them as a reviewer, then P0 reports that nobody owns unless `include_unowned` is false. The Today briefing ranks reports the same way. */
results: SignalReportList[];
- /** How many open reports are for the current user: the reports in `results`, plus the other open, actionable reports that name them as a reviewer. */
+ /** How many open reports are for the current user: the reports in `results`, plus the other open, actionable reports that name them as a reviewer. Counted over the same set as `results`, so it follows `include_unowned` too. */
count: number;
}
@@ -122650,6 +122650,10 @@ export namespace Schemas {
}};
export type SignalsReportsForYouRetrieveParams = {
+ /**
+ * Whether to include P0 reports that nobody owns. These belong to the project rather than to one person, and they rank above everything else, so a surface that only shows a person's own work passes false. Defaults to true.
+ */
+ include_unowned?: boolean;
/**
* How many of the top reports to return, 1 to 20. Defaults to 5.
* @minimum 1