Repository navigation
fix(cli): show the extension hint in init apns only with an Appwrite push provider - #2173
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
🟢 Tier S · Ready to mergeThe CLI now shows the APNs Notification Service Extension hint only when the project has an enabled Appwrite push provider; APNs-only setups no longer receive that guidance. Unit and e2e coverage checks both the APNs-only and enabled-provider cases. Latest changes: The latest commit gates the extension hint on finding an enabled Appwrite push provider and removes the obsolete prompt to enable that provider.
📂 Walkthrough · 3
Reviewed the commits since |
ghost
previously requested changes
Oct 29, 2026
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…push provider Co-Authored-By: Claude Opus 5.5 <[email protected]>
ghost
dismissed
their stale review
October 29, 2026 15:05
The findings that requested changes are resolved. See the summary comment for what is still open.
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.
Issue / Description
Raised in appwrite/appwrite#14554 (comment).
At the end of
init apns,apnsNextSteps()tells every user two things:Both only apply when the Appwrite push provider carries the message and APNs only wakes the app. That provider is hidden in the Console (
appwritePush: falseon both profiles inconsole-profiles.ts), and a plain APNs provider sends the whole notification (Messaging.php). So most users are pointed at a provider they can't enable and an extension they don't need.Solution
apnsNextSteps()prints nothing unless the project already has an enabled Appwrite push provider. In that case it prints only the extension hint. The "Enable the Appwrite push provider" hint is gone: the Console doesn't offer that provider, so the CLI shouldn't send people looking for it.It still makes the same
GET /messaging/providerscall, so the request sequence on a rerun stays the same.Tests
initpush_test.goTestInitApnsAddsTheApplePlatform: with APNs alone, the output has no extension hint (this is the regression test).TestInitApnsAsksForTheExtensionWithAnAppwritePushProvider: with an enabled Appwrite push provider, the extension hint is shown.tests/e2e/languages/cli/main.go:initApnsno longer expects either hint, and fails if the extension hint appears.The tests were pushed in their own commits before the fix, so CI shows them failing on the old code (red), then passing with the fix (green).
Red:
cli (console)on 6940d59, tests only (job)The first test-only commit (6b79355) never reached the tests:
{{in a Go map literal broke the Twig template. 6940d59 fixes the fixture.Green: 7678f9c (the fix), all 60 checks pass, including
cli (console)andTests / CLIGo126.🤖 Generated with Claude Code