Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(gitlab): merge requests can edit their labels #30483

MergedTonybynMp4(GitHub profile, opens in a new tab)merged 7 commits intomain fromrefs/pull/30483/headmerged by juliusmarminge View on GitHub

Showing 7 changed files with 40 additions and 26 deletions (loading 5).

x
0 of 7 viewed, 7 left
1 addition and 1 deletionpackages/client-runtime/src/state/pullRequests.test.tsModified
View file
@@ -2100,7 +2100,7 @@
host: "github.example.com",
- const detail = atoms.detail(target);
+ const detail = atoms.detail({ ...target, input: { ...target.input, allowStale: false } });
const candidates = atoms.labelCandidates(target);
registry.mount(detail);
const unmountCandidates = registry.mount(candidates);
39 additions and 25 deletionspackages/client-runtime/src/state/pullRequests.tsModified
View file
@@ -518,6 +518,16 @@
+ // Pages read the strict detail and other surfaces the default one; patch whichever is loaded
+ // without starting a read of the other.
+ const loadedDetails = (
+ registry: AtomRegistry.AtomRegistry,
+ target: { readonly environmentId: EnvironmentId; readonly input: PullRequestRef },
+ ) =>
+ [
+ detail({ ...target, input: { ...target.input, allowStale: undefined } }),
+ detail({ ...target, input: { ...target.input, allowStale: false } }),
+ ].filter((atom) => registry.getNodes().has(atom));
Resolvedby coderabbitai[bot](GitHub profile, opens in a new tab)
const detailReadVersions = Atom.family((source: ReturnType<typeof detail>) =>
Atom.family((answer: ReturnType<typeof detailAnswers>) =>