Repository navigation
[pull] main from appwrite:main - #238
Merged
Merged
Conversation
…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.
…r membership pages" This reverts commit b7ce717.
…er membership pages" This reverts commit a44e57e.
This reverts commit dbbc450.
…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
…atus error handling
# Conflicts: # composer.lock
# Conflicts: # composer.lock
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.
# Conflicts: # composer.lock
# Conflicts: # composer.lock
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
# Conflicts: # composer.lock
Co-authored-by: Cursor <[email protected]>
chore: absorb vcs into packages/vcs
…pleted fix: complete skipped onboarding stages when the action is performed
chore: absorb platform into packages/platform
refactor(messaging): align message update params with create
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 : )