Skip to content

fix(frontend): event stale fields#49

Merged
ivanskv2000 merged 2 commits into
mainfrom
fix/frontend/event-stale-fields
May 21, 2026
Merged

fix(frontend): event stale fields#49
ivanskv2000 merged 2 commits into
mainfrom
fix/frontend/event-stale-fields

Conversation

@ivanskv2000
Copy link
Copy Markdown
Owner

✨ Overview

This PR fixes a bug where event editing forms could contain stale field or tag data after a field or tag was deleted or updated.

Previously, deleting a field from the fields list page did not invalidate the ['events'] query. If a user then attempted to edit an event that referenced the deleted field, the form would initialize with the stale field ID, leading to a "One or more referenced fields do not exist" error upon submission.

Changes:

  • Updated FieldsPage.vue to invalidate the ['events'] query when a field is deleted or updated.
  • Updated FieldDetailsPage.vue to invalidate the ['events'] query when a field is deleted or updated.
  • Updated TagsPage.vue to invalidate the ['events'] query when a tag is deleted or updated.

🛠️ Scope & Verification

Workspace:

  • frontend
  • backend
  • common/config

Checklist:

  • Manually tested and verified locally
  • Automated suite passes cleanly (formatting, linting, tests)
  • New/updated unit tests included (if applicable)

📝 Developer Notes (Optional)

Invalidating the ['events'] query ensures that any component displaying event data (including the edit modal) will fetch the latest information from the server, which will have automatically unlinked the deleted fields or tags.

This ensures that event forms display the most up-to-date fields and tags,
preventing errors when submitting events that reference deleted items.
@sonarqubecloud
Copy link
Copy Markdown

@ivanskv2000 ivanskv2000 merged commit 60e393c into main May 21, 2026
4 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