Generate Push by default for SDKs that already released it
I maintainer di solito rispondono entro 1 giorno
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Tracks PR #2042.
Plan
Goal
Stop a regeneration from deleting Push from SDKs that already released it. Since #2037 Push is off by default, but sdk-for-android has shipped the Push service since 29.0.0 and sdk-for-go has shipped the topic package since v7.10.0 (per the PR description), so those SDKs should keep generating it by default.
What changes
- PR #2042 (
feat/push-default-for-released): addsLanguage::hasReleasedPush()insrc/SDK/Language.php(defaults tofalse), overridden totrueinsrc/SDK/Language/Android.phpandsrc/SDK/Language/Go.php, and back tofalseinsrc/SDK/Language/CLI.php(CLI extends Go). src/SDK/SDK.php: the constructor now callssetPush($language->hasReleasedPush()); an explicitsetPush(true|false)still wins.example.php: only callssetPush()whenSDK_GEN_PUSHis set, so the language default applies otherwise.tests/generation/GenerationTest.php: addstestPushDefaultsToWhetherTheSdkReleasedIt, checking the default for every language plus both explicit overrides.
Remaining steps
None for this ticket. PR #2042 is the full generator change. Adding another language to the released list later is a one-line hasReleasedPush() override when that SDK ships Push.
Done when
- PR #2042 is merged
- Android and Go generate Push/Topic by default; every other language (including CLI) leaves it out unless
setPush(true)is called -
testPushDefaultsToWhetherTheSdkReleasedItand the generation suite pass
- Lingua principale
- Twig
- Stelle
- 330
- Fork
- 212
- Merge medio
- 12h 3m
- PR unite (30g)
- 131
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di appwrite/sdk-generator
-
🐛 Bug Report: Execution.fromMap throws Bad state: No element when server doesn't return resourceType (pre-Sites serversForse di nuovo libera @Aakriti7-giti l’ha presa 79 giorni fa e non c’è nessuna pull request aperta. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
appwrite/sdk-generator#1858 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
appwrite/sdk-generator#1996 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
appwrite/sdk-generator#1851 ·
I maintainer di solito rispondono entro 1 giorno
-
📚 Documentation: Add Vale linting for all generated docs and examplesForse già presa @kekubhai l’ha presa 74 giorni fa. Aperta
appwrite/sdk-generator#1822 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Dependency DashboardAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
appwrite/sdk-generator#1628 ·
I maintainer di solito rispondono entro 1 giorno