Skip to content

[Bug] UpdateIssueCommand only updates Description — Title, Category, Status are dropped #117

@mpaulosky

Description

@mpaulosky

Summary

EditIssuePage.razor uses IssueForm which collects Title, Description, CategoryId, and StatusId. When the user submits, the handler builds an UpdateIssueCommand with only Description — changes to Title, Category, and Status are silently lost.

Root Cause

// EditIssuePage.razor — HandleSubmit
var command = new UpdateIssueCommand
{
    Id = ObjectId.Parse(Id),
    Description = request.Description
    // Title, CategoryId, StatusId are missing!
};

Work Required

  • Inspect UpdateIssueCommand to confirm available fields
  • Update HandleSubmit to include Title, CategoryId, StatusId from the form request
  • If UpdateIssueCommand / UpdateIssueHandler don't support these fields, add them
  • Verify the edit round-trip: load issue → change title + category → save → detail page reflects changes

Note on Pattern

A similar bug likely exists in UpdateCategoryCommand (EditCategoryPage only sends CategoryDescription, not CategoryName) and UpdateStatusCommand. Those should be audited in the same PR.

Acceptance Criteria

  • Editing the Title of an issue and saving reflects the new title on the detail page
  • Editing the Category and saving reflects the new category
  • Admin changing Status via Edit form (if applicable) is persisted
  • EditCategoryPage and EditStatusPage update the Name field correctly (bonus fix)

Files

  • src/Web/Components/Features/Issues/EditIssuePage.razor
  • src/Api/Handlers/Issues/UpdateIssueHandler.cs
  • src/Shared/ (UpdateIssueCommand definition)
  • src/Web/Components/Features/Categories/EditCategoryPage.razor (audit)
  • src/Web/Components/Features/Statuses/EditStatusPage.razor (audit)

Metadata

Metadata

Labels

go:yesReady to implementpriority:p1This sprintrelease:backlogNot yet targetedsprint-3Sprint 3 — Full CRUD UI + ArchivesquadSquad triage inbox — Lead will assign to a membersquad:legolasAssigned to Legolas (Frontend Dev)squad:samAssigned to Sam (Backend Dev)type:bugSomething broken

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions