Skip to content

Prepare Folder Upload Notifications 0.4.0-alpha.5 for the App Store - #1

Merged
AlexPuchner merged 41 commits into
mainfrom
agent/m0-m1-scaffold
Aug 7, 2026
Merged

AlexPuchner merged 41 commits into
mainfrom
agent/m0-m1-scaffold

Conversation

@AlexPuchner

@AlexPuchner AlexPuchner commented Aug 6, 2026 •

Copy link
Copy Markdown
Owner

Funktionsumfang

  • ereignisgesteuerte Ordnerüberwachung für Nextcloud 32–34
  • persönliche und geteilte Ordner einschließlich virtueller Share-Mounts
  • direkte oder rekursive Überwachung
  • eigene Uploads optional einbeziehen
  • Push und E-Mail getrennt pro Abonnement
  • persistente Zwei-Minuten-Bündelung nach Empfänger, Uploader und Zielordner
  • experimentelle, authentifizierte OCS-API

Store-Kandidat 0.4.0-alpha.5

  • deutsch/englische App-Store-Metadaten
  • kompaktes Produktionsarchiv mit genau einem Top-Level-Ordner folder_upload_notifications
  • Tests, Quellpakete, lokale Konfiguration und Repository-Metadaten ausgeschlossen
  • reproduzierbarer Build und signierte Release-Pipeline
  • korrekter öffentlicher Assetname in der SHA-256-Prüfsumme
  • private Schlüssel, CSRs und lokale Signaturen von Git ausgeschlossen
  • kompakte Anwenderdokumentation; API bewusst separat als experimentell dokumentiert

Zuverlässigkeit der Sammelzustellung

  • Batches bleiben bis zur erfolgreichen Zustellung persistent
  • Push und E-Mail werden nach Erfolg einzeln als erledigt gespeichert
  • ein vorübergehender SMTP-Fehler wiederholt keinen bereits erfolgreichen Push
  • parallele Uploads werden über die Revisionsprüfung erkannt und neu eingeplant
  • fehlgeschlagene Zustellungen werden durch den Nextcloud-Hintergrundjob erneut versucht

Bereits live geprüft

  • Installation und Migration auf Nextcloud 33.0.2.2 / PHP 8.4.20 / PostgreSQL
  • CRUD-API und persönliche Einstellungsseite
  • Fremd- und Eigen-Upload-Filter
  • Share-Mount-Auflösung von sabi nach Alex' virtuellem Sammelordner
  • rekursive Unterordner-Option
  • Push-/E-Mail-Auswahl
  • Update bis 0.4.0-alpha.4

Automatisch geprüft

  • PHP-Syntax auf PHP 8.1, 8.2, 8.3 und 8.4
  • Nextcloud-Coding-Standard
  • Psalm ohne Fehler
  • Unit-Tests gegen die reale Nextcloud-32-Laufzeit
  • TypeScript-/Vue-Typprüfung und Produktionsbuild
  • App-Metadaten gegen das offizielle Schema
  • App-Store-Archivstruktur und Ausschlüsse
  • npm audit --omit=dev: keine bekannte Laufzeit-Schwachstelle

Vor der Store-Veröffentlichung

  • 0.4.0-alpha.5 auf der Referenzinstanz installieren
  • mindestens drei gleichzeitige Uploads als genau eine Sammelmeldung live bestätigen
  • Nextcloud-App-Zertifikat für folder_upload_notifications beantragen
  • GitHub-Secrets APP_PRIVATE_KEY und APPSTORE_TOKEN hinterlegen
  • GitHub-Pre-Release v0.4.0-alpha.5 veröffentlichen
  • signiertes Paket im Nextcloud App Store prüfen

@AlexPuchner AlexPuchner changed the title Scaffold event-driven Nextcloud app Build event-driven app scaffold and subscription backend Aug 6, 2026
@AlexPuchner AlexPuchner changed the title Build event-driven app scaffold and subscription backend Build subscription backend and native upload notifications Aug 6, 2026
@AlexPuchner AlexPuchner changed the title Build subscription backend and native upload notifications Build folder subscriptions, native notifications, and settings UI Aug 6, 2026
@AlexPuchner AlexPuchner changed the title Build folder subscriptions, native notifications, and settings UI Build folder upload notifications and prepare alpha App Store release Aug 6, 2026
@AlexPuchner
AlexPuchner marked this pull request as ready for review August 6, 2026 23:22

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 378c851500

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +77 to +78
if ($this->batchMapper->deleteIfRevision($batchId, $batch->getRevision()) > 0) {
$this->dispatcher->dispatch($batch);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve batches until dispatch succeeds

When dispatch throws or reports a channel failure—for example, a transient filesystem exception from resolveAccessibleFile() or an SMTP/push outage—the batch has already been deleted here. The outer handler schedules a retry with the same ID, but flush() then finds no row and returns; moreover, the channel publishers catch delivery exceptions, so those failures never trigger the retry at all. Keep a recoverable batch until delivery succeeds so transient failures do not permanently lose the core notification.

Useful? React with 👍 / 👎.

Comment thread .github/workflows/appstore-release.yml Outdated
--path="build/artifacts/signed/${APP_NAME}"
tar -czf "build/artifacts/${APP_NAME}.tar.gz" \
-C build/artifacts/signed "${APP_NAME}"
sha256sum "build/artifacts/${APP_NAME}.tar.gz" > "build/artifacts/${APP_NAME}-${APP_VERSION}.sha256"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Write the released asset name into the checksum

In the inspected appstore-release.yml, this records build/artifacts/folder_upload_notifications.tar.gz, while the following upload publishes the archive as folder_upload_notifications-${APP_VERSION}.tar.gz. GNU sha256sum --help states that check mode reads filenames from the former output, so running sha256sum -c beside the downloaded release assets fails because the embedded path and filename do not exist; generate the checksum with the public asset basename instead.

Useful? React with 👍 / 👎.

@AlexPuchner AlexPuchner changed the title Build folder upload notifications and prepare alpha App Store release Prepare Folder Upload Notifications 0.4.0-alpha.5 for the App Store Aug 7, 2026
@AlexPuchner
AlexPuchner merged commit b1d5dde into main Aug 7, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant