Skip to content

fix(announcement): auditor action in tags creation#9766

Open
ecurbelo wants to merge 1 commit into
backstage:mainfrom
ecurbelo:announcement-fix-create-tag-auditor
Open

fix(announcement): auditor action in tags creation#9766
ecurbelo wants to merge 1 commit into
backstage:mainfrom
ecurbelo:announcement-fix-create-tag-auditor

Conversation

@ecurbelo

@ecurbelo ecurbelo commented Jul 8, 2026

Copy link
Copy Markdown

Announcement plugin

When a tag is created, the event emitted is "update" instead of "create".

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)
  • All your commits have a Signed-off-by line in the message. (more info)

Signed-off-by: Elena Curbelo <ecurbelo@gmail.com>
Copilot AI review requested due to automatic review settings July 8, 2026 08:34
@ecurbelo ecurbelo requested review from a team, gaelgoth and kurtaking as code owners July 8, 2026 08:34
@ecurbelo ecurbelo requested a review from awanlin July 8, 2026 08:34
@backstage-service backstage-service added the workspace/announcements Used to tag announcements workspace isses and pull requests label Jul 8, 2026
@backstage-goalie

Copy link
Copy Markdown
Contributor

Missing Changesets

The following package(s) are changed by this PR but do not have a changeset:

  • @backstage-community/plugin-announcements-backend

See CONTRIBUTING.md for more information about how to add changesets.

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage-community/plugin-announcements-backend workspaces/announcements/plugins/announcements-backend none v0.26.0

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Fixes the announcements backend auditor metadata for tag creation so that creating a tag is recorded as a create action (rather than update), aligning auditing with the actual operation.

Changes:

  • Update the auditor event meta.actionType for POST /tags from AUDITOR_ACTION_UPDATE to AUDITOR_ACTION_CREATE.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

severityLevel: 'medium',
meta: {
actionType: AUDITOR_ACTION_UPDATE,
actionType: AUDITOR_ACTION_CREATE,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Adding a test to prevent regression would also be nice.

@kurtaking

kurtaking commented Jul 14, 2026

Copy link
Copy Markdown
Member

Hey @ecurbelo - thanks for the contribution! Can you please add the missing changeset for this and we can 🚢

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

Labels

workspace/announcements Used to tag announcements workspace isses and pull requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants