Skip to content

[pull] main from appwrite:main - #238

Merged
pull[bot] merged 1182 commits into
TheTechOddBug:mainfrom
appwrite:main
Sep 28, 2026
Merged

pull[bot] merged 1182 commits into
TheTechOddBug:mainfrom
appwrite:main

Conversation

@pull

@pull pull Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

HarshMN2345 and others added 30 commits July 17, 2026 15:19
…ship pages

Previously fetched one page of /projects?membership=true and filtered
it client-side, so a user's own repos could land on a later page than
requested and searchRepositories() would return an empty result even
though matching repos existed. Now collects all owner-matching projects
across membership pages first, then paginates the filtered set.
…s on later membership pages""

This reverts commit a57ce69.
Fix GitLab::getEvent() field/action parity with Gitea's shape
… repository root

GitLab's tree/file endpoints receive path as a literal query parameter
or URL segment value, which is never subject to URI dot-segment
normalization the way GitHub's contents API path segments are. Callers
that pass './' or '.' to mean "repository root" (as is conventional in
git and POSIX shells) get an empty tree / 404 instead of root contents,
since GitLab looks for a file/directory literally named '.'.

Normalize './' and '.' to an empty root path, and strip a leading './'
from nested paths, in both listRepositoryContents() and
getRepositoryContent().
'./././' was only stripped once, leaving a literal './' that GitLab
would still look up as-is. Loop the strip and collapse a leftover
'.' to root too.
…tripping

The leading-'./' loop only handled prefixes; it left embedded dot
segments (src/./main.php), double slashes (src//main.php), and
trailing slashes untouched, all of which GitLab still resolves
literally. Filter empty and '.' segments out of the whole path instead
of special-casing the start of the string.
Fix GitLab adapter treating './' as a literal path instead of repository root
…oups

GitLab's OAuth2 grant covers the user's personal namespace and every
group they belong to in one authorization -- unlike GitHub's per-
installation org picker, there's no step in the flow where the user
chooses one. Appwrite needs this to build its own namespace/group
picker after the OAuth redirect, similar to how Vercel/Netlify let you
switch between orgs post-connect.
Total only included the personal namespace on page 1 (it was gated
behind the same page===1 check as the item itself), so a caller
paginating would see a different total depending on which page they
requested first. Fetch /user on every page to decide the search match
consistently, and drop the redundant min_access_level filter -- /groups
already scopes to groups the user belongs to.
The previous fix fetched /user on every page to keep the total
consistent, but that's wasteful: without a search term the personal
namespace always counts, so only page 1 (to build the item) or an
active search (to resolve the match) actually need the call.
…ast page

Page 1 always requested a full per_page groups before prepending the
personal namespace, so a full group page pushed it to per_page+1
items -- and when the group count was exactly divisible by per_page,
the incremented total advertised a final page whose group request
returned nothing (Greptile P1).

Reserves one slot for the personal namespace on page 1 only, and
fetches groups via a 0-based offset into the full group list (shifted
by 1 whenever the personal namespace occupies a slot), walking GitLab's
own page/per_page boundaries since that offset rarely aligns with them.

Adds a pure-unit test faking the HTTP layer to cover the exact
boundary case a live-only test can't reach without seeding 20+ real
groups. Also drops the page/per_page defaults on listNamespaces() to
match searchRepositories()' pattern of requiring callers to pass them
explicitly.
…r + /groups

GitLab already exposes GET /namespaces, which combines the personal
namespace and every group into one correctly-paginated list with the
exact fields needed (id, name, path, kind, avatar_url) and its own
search param. The previous implementation manually merged /user with
/groups and shifted pagination offsets to account for the personal
namespace taking a slot -- solving a problem GitLab's own API already
solves, and the source of the P1 pagination bug found in review.

This also settles review naming questions: "namespaces" (not "groups")
and "kind" (not "type") both mirror GitLab's own /namespaces API
terminology directly, since this is an adapter for that API.
Add GitLab::listNamespaces() to list personal namespace + groups
ChiragAgg5k and others added 27 commits September 28, 2026 12:09
array_rand() draws from the Mt19937 generator, so a phrase was
predictable from earlier ones. Index both word lists with random_int()
instead, matching Code and Password.
The email, SMS and push update endpoints declared content, topics, users
and targets in a different order than their create siblings, so the
generated SDKs exposed two different signatures for the same fields.

This reorders the generated SDK arguments for updateEmail, updateSms and
updatePush.
ShutdownTest starts a real Swoole worker pool; in the shared root packages suite it never returns after the other tests have run, so Tests / Unit hits its 15-minute timeout on main. Swoole work doesn't belong in the shared unit process, and the queue e2e tier runs it on its own.
test(queue): run the Swoole shutdown test in the e2e tier
chore: absorb emails into packages/emails
chore: absorb vcs into packages/vcs
…pleted

fix: complete skipped onboarding stages when the action is performed
…7b68dbd3a'

git-subtree-dir: packages/platform
git-subtree-mainline: 1bc79bd
git-subtree-split: dc43dd3
chore: absorb platform into packages/platform
refactor(messaging): align message update params with create
@pull pull Bot locked and limited conversation to collaborators Sep 28, 2026
@pull pull Bot added the ⤵️ pull label Sep 28, 2026
@pull
pull Bot merged commit fdb3311 into TheTechOddBug:main Sep 28, 2026
0 of 7 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants