Repository navigation
Development - #94
Merged
Merged
Development#94
Conversation
- docs/adr/0001: event naming, delivery semantics, persistence, actor and security rules - #lib/server/events: typed InProcessEventBus (async, per-subscriber ordering, isolated handlers, drain), RecordingEventBus for tests, HMR-safe singleton - request context carries userId / apiKeyId so events resolve their actor - CLAUDE.md: Domain events section Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- #lib/events: shared DomainEventMap payloads and typed EVENT_CATALOG (exhaustive, compile-time checked field paths, derive fields, getFieldValue / listAlertableEvents) - code_report.analysis.completed/failed, code_report.policy.violated and code_report.service.created/deleted published after the GitDB write, with project scope - es/en translations for events, fields and options, enforced by a test Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- vault.secret.created/updated/deleted with key, folder and affected environment ids (never values); updated also reports changedFields - vault.env.imported once per import instead of one event per secret - vault.environment.created/deleted - shared resolveProjectScope in #lib/server/events/scope - es/en translations and no-leak tests Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- project.created/updated/deleted scoped to the organization (alerts are set up by org admins), updated reports changedFields - organization.updated with changedFields - es/en translations and tests Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- access.granted/updated/revoked for cluster, organization and project access - user.invited and invitation.accepted (no token, URL or email) - role.updated with added/removed permissions - api_key.created/revoked with the public prefix only (never the key or its hash) - publishAfterWrite helper so events never fail a successful write - es/en translations and no-leak tests Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The e2e tsconfig still mapped $env/dynamic/private (to a file that no longer exists) while the app reads $app/env/private, so global setup failed before any spec ran. Add a stand-in that reads process.env after global setup assigns the throwaway configuration. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- InMemoryEventLog subscribed to the bus: recent events plus a shared ack (who and when), retention via GITOPS_EVENTS_EXPIRATION (default 7d), capped at 10,000 events - /org/<org>/events: events the viewer may read (each definition's readPermission, checked in the event's project or organization), filters by module and status, ack action - request context store is process-wide so the long-lived bus sees the actor after Vite HMR - sidebar entry, es/en translations, unit tests and an e2e spec Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n:events - /org/<org>/settings/events, listed under organization settings in the sidebar - new organization:events permission: read to open the page, update to acknowledge - default Organization Admin role gets organization:events:all; existing roles are not migrated, the permission shows up in the role editor to enable it - e2e: page in the organization settings permission matrix Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…izacion [Alertas] Página de eventos en los ajustes de la organización con ack
…ons and API (#79) - alerts module: AlertEntity, repository + in-memory fake, AlertService validating against the event catalog (fields, operators, typed values, references and recipients inside the location, anti-escalation on the event readPermission) - pure condition evaluator (all/any, nested paths, derive, absent fields, list values) - AlertEngine on the bus ('*'): fixed system notifications (access changes, personal API keys), cached enabled alerts per event type, per-alert throttle, recipients filtered by cancan most-specific-wins, one email per recipient - API: /api/events/catalog, /api/alerts CRUD, /api/alerts/[id]/test and /api/alerts/test dry runs; project API keys confined to their project - organization:alerts:* and project:alerts:* permissions; default org/project admin get :all, project developer and viewer get read; layout flags for the sidebar - registerAlertEngine() in hooks.server.ts (HMR-safe) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lder (#80) - organization and project settings pages: list (summary of filters, recipients, active toggle, read-only inherited organization alerts, empty state with examples), new and edit editor in four steps (event, conditions, recipients and delivery, test and save) - ConditionBuilder renders fields, operators and inputs only from the catalog entry (text, number, date, enum and reference pickers with search, multi for in/not_in) - form actions shared in #lib/server/alerts/page.ts (draft, save, test, toggle, delete): everything works without JavaScript, field errors announced with aria-describedby - sidebar entries behind organization:alerts:read / project:alerts:read - es/en translations for the UI, operators and error codes - component test via svelte/server (vitest.config.ts now compiles .svelte), summary tests, e2e alerts spec (guided example, viewer 403, sidebar, outsiders, 401, no-JS) - README: Alerts section with the guided example Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ut (#81) - _layout.html shared by every email (header, content, footer with the reason and a link to manage the alert); invite and password reset moved onto it, still sent directly because their links carry tokens - alert.html (field table built from the catalog), alert-code-report-analysis.html (service, branch, commit, coloured severities, violated policies) and system-access-changed / system-security-notice for the fixed notices - EventDefinition.mailTemplate, link(context) and mailSummary(payload); subject "[GitOps] <alert>: <summary>"; absolute links from ORIGIN, omitted without it; recipient language or English; stripped from the client catalog - MailQueue: concurrency 3, withRetry 4 attempts 1s/4s/16s with jitter only for network errors and 4xx SMTP replies, definitive failures logged with a recipient hash and no content, drained on sveltekit:shutdown (10 s) - without SMTP: startup warning, debug per skipped event, banner on the alert pages - e2e no longer inherits SMTP settings from a developer's .env - docs: README email section, CLAUDE.md, .env.example, optional mailpit service Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
[Alertas] Canal email: plantillas, cola de envío y reintentos
This branch was previously deployed
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.
Merge to Main