Skip to content

Add a safe web API for automation edits #1973

Closed

Description

@sentry-junior

Parent: #1970.

The reviewed web routes support reads and deletion, but no edits. The list schema provides display strings rather than all structured values required for safe editing.

Approved scope

  • Return structured schedules and event selectors, including match conditions and credential mode, for authorized editing.
  • Support title, instruction, trigger, outcomes, and credential mode updates.
  • Start with creator-only web editing. Public visibility grants read access, not edit permission.
  • Share validation and update rules with Slack tools. Keep provider-specific event rules in their owning plugins.
  • Enforce creator credential rules. Never bind an edit to another user's credentials or grant new access implicitly.
  • Reject stale saves rather than overwriting newer changes.
  • Preserve manually set titles when instructions change, including changes made through Slack.
  • Preserve existing values that the editor does not change. Do not silently discard unsupported fields or event match conditions.

Acceptance criteria

  • Updates preserve Automation ID, creator identity, and execution history.
  • Unauthorized edits and stale saves fail without partial changes.
  • Web and Slack updates use the same domain validation and preserve credential boundaries.
  • Saving does not run the Automation or restart completed work.
  • The API exposes clear errors that the web editor can associate with fields or the whole save.

This is the prerequisite for the native web edit flow. New pause behavior is tracked separately.

via David Cramer.

--

View Junior Session [Sentry]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions