Repository navigation
fix(apple,dotnet,swift,cli): push_received dedupe, doc examples and Go SDK v7.20.0 - #2231
Merged
Merged
Conversation
An untracked Push that got the same delivery first recorded the key, so the tracked instance never sent push_received. The opened path and the Flutter and React Native templates already check tracking first.
🟢 Tier S · Ready to merge
The pull request adjusts Apple push-received deduplication, .NET and Swift generated example declarations, and the Go SDK version used by the CLI. It also adds generation regression coverage for Swift service/result name collisions and .NET methods without a response model. Latest changes: The newest commit extends the inline generation fixture with a colliding Swift model/service and a response-less .NET operation, then asserts the generated examples use
📂 Walkthrough · 5
Reviewed the commits since |
…name results A .NET example for a method with no response model declared 'Appwrite.Models. result'; it now uses object, matching Task<object>. A Swift example whose result model shares the service's name (project.get, locale.get) redeclared the service variable; it now names the result 'result'.
v7.20.0 adds CreateLDAPSession, UpdateLDAP and CreateLDAPTest, which the CLI commands for those endpoints call.
The identifier fixture gains a no-content method and a model named after its service; both assertions fail on the previous templates.
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Three fixes from review on the 2.7.2 SDK release PRs (appwrite/sdk-for-apple#136, appwrite/sdk-for-dotnet#117, appwrite/sdk-for-swift#84).
Apple:
push_receiveddedupe.Push.firstTrackedrecorded the key before thereceivedpath checked for a tracker. An untrackedPushthat handled a delivery first took the key, so the tracked one never sentpush_received.This matches the
openedpath and the Flutter and React Native templates. No test covers it:deliveris private and needs live push subscriptions..NET examples. A method with no response model rendered
Appwrite.Models. result = …. It now rendersobject result, matchingTask<object>. This affectsoauth2.revoke,project.createSMTPTestandproject.createLDAPTest.Swift examples. When the result model shared the service's name, the example redeclared the service variable:
let project = try await project.get(). Those examples now useresult. This affects 26 examples onmain(project.*,locale.get,organization.*).Appwrite.Models. result = await project.CreateLDAPTest(object result = await project.CreateLDAPTest(let project = try await project.updateLDAP(let result = try await project.updateLDAP(Verified by regenerating the server .NET and Swift SDKs against the 2.7.x spec: no broken declarations remain.
swift buildpasses on the patched Apple SDK.CLI.
go.mod.twigpins Go SDKv7.20.0, which addsCreateLDAPSession,UpdateLDAPandCreateLDAPTest. The generated CLI fails to build onv7.19.0; onv7.20.0,go buildandgo vetpass.Related: appwrite-labs/cloud#6667