lastlight-core 0.25.0 → 0.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/config/default.yaml
CHANGED
|
@@ -111,11 +111,19 @@ feedback:
|
|
|
111
111
|
# `nearform/lastlight`, which they own. Applied as a filter somebody switched on,
|
|
112
112
|
# the same narrowing is exactly the decluttering they asked for.
|
|
113
113
|
#
|
|
114
|
+
# The filter is your teams' repos PLUS the managed repos your own account owns.
|
|
115
|
+
# Teams are an org concept, so a personal repo can never be granted by one; a
|
|
116
|
+
# strictly team-derived answer hid every personal repo an instance managed. The
|
|
117
|
+
# test is `owner == your login` — not "the owner isn't an org", which would put
|
|
118
|
+
# other people's personal repos in your filter.
|
|
119
|
+
#
|
|
114
120
|
# This flag is the OPERATOR switch: it needs the GitHub App's organization
|
|
115
121
|
# `Members: read` permission, so turn it on once you've granted that and
|
|
116
|
-
# re-consented the App on each installation. Without it the
|
|
117
|
-
#
|
|
118
|
-
#
|
|
122
|
+
# re-consented the App on each installation. Without it the resolver fails open
|
|
123
|
+
# and nothing is filtered — the toggle still appears and says why, so an
|
|
124
|
+
# outstanding setup step is visible instead of silent. UI only — every list
|
|
125
|
+
# endpoint still returns global data, and each budget below fails OPEN (shows
|
|
126
|
+
# more).
|
|
119
127
|
#
|
|
120
128
|
# Nothing is crawled up front. A user's teams are resolved on demand, on their
|
|
121
129
|
# first dashboard request, and cached — so an org with thousands of repos and
|
|
@@ -42,12 +42,19 @@ export interface TeamVisibilityDeps {
|
|
|
42
42
|
*
|
|
43
43
|
* ## This answers a PREFERENCE, not an entitlement
|
|
44
44
|
*
|
|
45
|
-
* The repos returned here are the ones a person's teams own
|
|
46
|
-
*
|
|
47
|
-
* reach
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* ownership.
|
|
45
|
+
* The repos returned here are the ones a person's teams own, **plus the ones
|
|
46
|
+
* their own account owns** — which is still **not** the same as the repos they
|
|
47
|
+
* can reach. Org owners and direct collaborators reach repos no team grants
|
|
48
|
+
* them: a dry run against the live nearform install found one maintainer's
|
|
49
|
+
* single team (`nearformers`) covering 4 of 8 managed repos, hiding
|
|
50
|
+
* `nearform/lastlight` itself, on which they hold `admin` via org ownership.
|
|
51
|
+
*
|
|
52
|
+
* The ownership union closes the one gap that was pure artefact rather than
|
|
53
|
+
* approximation: teams are an ORG concept, so a repo under somebody's personal
|
|
54
|
+
* account could never be granted by a team, and a strictly team-derived answer
|
|
55
|
+
* hid every one of them — on an instance managing mostly personal repos, that
|
|
56
|
+
* was most of the dashboard. See {@link ownedManagedRepos}, and note the test
|
|
57
|
+
* is `owner === login`, not "the owner is not an org".
|
|
51
58
|
*
|
|
52
59
|
* That is precisely why the dashboard filter this feeds is **opt-in and off by
|
|
53
60
|
* default**. As a default it would hide people's own work; as a filter somebody
|
|
@@ -110,6 +117,23 @@ export declare class TeamVisibilityResolver {
|
|
|
110
117
|
visibleRepos(login: string | undefined): Promise<VisibilityResult>;
|
|
111
118
|
/** Force a fresh resolution, ignoring the TTL (the admin re-sync route). */
|
|
112
119
|
resync(login: string): Promise<VisibilityResult>;
|
|
120
|
+
/**
|
|
121
|
+
* Managed repos owned by this login's OWN account.
|
|
122
|
+
*
|
|
123
|
+
* A personal account has no teams — teams are an org concept — so a repo
|
|
124
|
+
* under your own login can never arrive via a team grant, and a purely
|
|
125
|
+
* team-derived filter hid every one of them. That is backwards: team grants
|
|
126
|
+
* are a proxy for involvement, and nobody is more involved in a repo than its
|
|
127
|
+
* owner.
|
|
128
|
+
*
|
|
129
|
+
* **The test is `owner === login`, NOT "the owner is not an organization".**
|
|
130
|
+
* The second reads as the same thing on a single-owner instance and is a
|
|
131
|
+
* disclosure bug on any other: it would put every OTHER person's personal
|
|
132
|
+
* repos into your filter. GitHub shares one namespace between users and orgs,
|
|
133
|
+
* so an exact login match is unambiguous — and free, because the owner is
|
|
134
|
+
* already in the managed string. No API call, nothing to cache.
|
|
135
|
+
*/
|
|
136
|
+
private ownedManagedRepos;
|
|
113
137
|
/** Project a stored status + the cached rows into a result. */
|
|
114
138
|
private fromCache;
|
|
115
139
|
/** One resolution pass, deduped per login. */
|
|
@@ -22,12 +22,19 @@ export const DEFAULT_TEAM_VISIBILITY = {
|
|
|
22
22
|
*
|
|
23
23
|
* ## This answers a PREFERENCE, not an entitlement
|
|
24
24
|
*
|
|
25
|
-
* The repos returned here are the ones a person's teams own
|
|
26
|
-
*
|
|
27
|
-
* reach
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* ownership.
|
|
25
|
+
* The repos returned here are the ones a person's teams own, **plus the ones
|
|
26
|
+
* their own account owns** — which is still **not** the same as the repos they
|
|
27
|
+
* can reach. Org owners and direct collaborators reach repos no team grants
|
|
28
|
+
* them: a dry run against the live nearform install found one maintainer's
|
|
29
|
+
* single team (`nearformers`) covering 4 of 8 managed repos, hiding
|
|
30
|
+
* `nearform/lastlight` itself, on which they hold `admin` via org ownership.
|
|
31
|
+
*
|
|
32
|
+
* The ownership union closes the one gap that was pure artefact rather than
|
|
33
|
+
* approximation: teams are an ORG concept, so a repo under somebody's personal
|
|
34
|
+
* account could never be granted by a team, and a strictly team-derived answer
|
|
35
|
+
* hid every one of them — on an instance managing mostly personal repos, that
|
|
36
|
+
* was most of the dashboard. See {@link ownedManagedRepos}, and note the test
|
|
37
|
+
* is `owner === login`, not "the owner is not an org".
|
|
31
38
|
*
|
|
32
39
|
* That is precisely why the dashboard filter this feeds is **opt-in and off by
|
|
33
40
|
* default**. As a default it would hide people's own work; as a filter somebody
|
|
@@ -123,23 +130,60 @@ export class TeamVisibilityResolver {
|
|
|
123
130
|
this.store.invalidateLogin(login);
|
|
124
131
|
return this.resolve(login, config);
|
|
125
132
|
}
|
|
133
|
+
/**
|
|
134
|
+
* Managed repos owned by this login's OWN account.
|
|
135
|
+
*
|
|
136
|
+
* A personal account has no teams — teams are an org concept — so a repo
|
|
137
|
+
* under your own login can never arrive via a team grant, and a purely
|
|
138
|
+
* team-derived filter hid every one of them. That is backwards: team grants
|
|
139
|
+
* are a proxy for involvement, and nobody is more involved in a repo than its
|
|
140
|
+
* owner.
|
|
141
|
+
*
|
|
142
|
+
* **The test is `owner === login`, NOT "the owner is not an organization".**
|
|
143
|
+
* The second reads as the same thing on a single-owner instance and is a
|
|
144
|
+
* disclosure bug on any other: it would put every OTHER person's personal
|
|
145
|
+
* repos into your filter. GitHub shares one namespace between users and orgs,
|
|
146
|
+
* so an exact login match is unambiguous — and free, because the owner is
|
|
147
|
+
* already in the managed string. No API call, nothing to cache.
|
|
148
|
+
*/
|
|
149
|
+
ownedManagedRepos(login, managed) {
|
|
150
|
+
const owned = [];
|
|
151
|
+
for (const full of managed) {
|
|
152
|
+
const slash = full.indexOf("/");
|
|
153
|
+
if (slash > 0 && full.slice(0, slash) === login)
|
|
154
|
+
owned.push(full);
|
|
155
|
+
}
|
|
156
|
+
return owned;
|
|
157
|
+
}
|
|
126
158
|
/** Project a stored status + the cached rows into a result. */
|
|
127
159
|
fromCache(login, status, syncedAt) {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
160
|
+
// An INCOMPLETE team answer stays fail-open, and is deliberately NOT
|
|
161
|
+
// rescued by the owned repos below. "Your own repos, plus an unknown
|
|
162
|
+
// fraction of your teams'" is still a partial answer, and filtering to it
|
|
163
|
+
// would hide precisely the org repos the truncated/errored half would have
|
|
164
|
+
// contributed — the same reasoning that makes a partial org set fail the
|
|
165
|
+
// whole pass. Only a COMPLETE team answer (`ok` or `empty`) is augmented.
|
|
166
|
+
if (status !== "ok" && status !== "empty") {
|
|
167
|
+
const reason = status === "truncated" ? "truncated" : status === "disabled" ? "disabled" : "error";
|
|
168
|
+
return FAIL_OPEN(reason, syncedAt);
|
|
131
169
|
}
|
|
132
170
|
const cached = this.store.reposForLogin(login);
|
|
133
171
|
// A team that has since been marked truncated, or rows that vanished under
|
|
134
172
|
// us, must not narrow the view.
|
|
135
173
|
if (cached.truncated)
|
|
136
174
|
return FAIL_OPEN("truncated", syncedAt);
|
|
137
|
-
if (cached.repos.length === 0)
|
|
138
|
-
return { ...FAIL_OPEN("no-teams", syncedAt), synced: true };
|
|
139
175
|
// Re-intersect with the LIVE managed list: a repo removed from the
|
|
140
176
|
// installation since the resolution must not linger in somebody's filter.
|
|
177
|
+
// The owned set is derived from that same live list rather than persisted,
|
|
178
|
+
// so it has no cache of its own and cannot go stale against it — which is
|
|
179
|
+
// also why `status: "empty"` (no teams at all) can still yield a filter.
|
|
141
180
|
const managed = new Set(this.readManagedRepos());
|
|
142
|
-
const repos =
|
|
181
|
+
const repos = [
|
|
182
|
+
...new Set([
|
|
183
|
+
...cached.repos.filter((r) => managed.has(r)),
|
|
184
|
+
...this.ownedManagedRepos(login, managed),
|
|
185
|
+
]),
|
|
186
|
+
].sort();
|
|
143
187
|
if (repos.length === 0)
|
|
144
188
|
return { ...FAIL_OPEN("no-teams", syncedAt), synced: true };
|
|
145
189
|
return { repos, synced: true, reason: "ok", teams: cached.teams, syncedAt };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team-visibility.js","sourceRoot":"","sources":["../../../src/engine/github/team-visibility.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAA6B,MAAM,wBAAwB,CAAC;AACrF,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAIjD,MAAM,GAAG,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAmCtC,MAAM,SAAS,GAAG,CAAC,MAAwB,EAAE,WAA0B,IAAI,EAAoB,EAAE,CAAC,CAAC;IACjG,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,KAAK;IACb,MAAM;IACN,KAAK,EAAE,EAAE;IACT,QAAQ;CACT,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAyB;IAC3D,OAAO,EAAE,KAAK;IACd,UAAU,EAAE,EAAE;IACd,eAA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