Skip to content

Fix vanishing tickets, unsaveable statuses and lost default status - #73

Merged
Lantzify merged 5 commits into
v17/mainfrom
v17/dev
Nov 25, 2026
Merged

Lantzify merged 5 commits into
v17/mainfrom
v17/dev

Conversation

@Lantzify

Copy link
Copy Markdown
Owner

Summary

  • Vanishing tickets (An unknown ticket type makes a ticket vanish #69): a ticket whose type doesn't exist stays in the lists and can be opened. SqlExtensions.GetFullTicket now left-joins the type, and both email templates accept a ticket without one.
  • Built-in statuses (The four built-in statuses can't be saved #70): the four seeded statuses can be saved again. They have no icon, and uSupportTypeBase.Icon is now nullable, so the API no longer answers 400.
  • Default status (A site can lose its default status, and then no one can create tickets #71): PUT usupport/ticket-status/{id} refuses to turn Default off, and DELETE refuses the default status. Both answer 400 with the reason, which the backoffice shows. Making another status the default still works.
  • The generated API client is updated: icon is optional, and the status PUT can return 400.
  • New E2E specs cover all three fixes.
  • CLAUDE.md files describe the repo, the backend and the frontend.
  • PackagesByAuthor is removed from umbraco-marketplace.json.

Not included: the API still accepts an unknown type when a ticket is created or updated (#72). This PR only keeps such tickets visible. No version bump and no migration.

Why

Each bug blocks normal use of 17.0.0. A ticket could disappear for good while the list still counted it, the built-in statuses couldn't be edited, and a site that lost its default status couldn't create tickets at all.

How to verify

  • dotnet test src/uSupport.Tests (19 passing)
  • npx tsc --noEmit in src/uSupport/Client
  • E2E (runs on this PR). Locally: cd src/uSupport.E2E && npx playwright test edit.statuses edit.tickets
  • uSupport › Ticket statuses › In progress › Save shows "Status saved"
  • On the default status, turn Default off and save: "Make another status the default instead", and it is still the default after a reload
  • Delete the default status: "Make another status the default first"

Risk / rollback

  • API callers: turning off or deleting the default status now gets a 400 where it used to succeed.
  • Custom email templates: a site's own template, or one from assets/email-templates.zip, still uses @Model.Type.Name. For a ticket without a type it fails to render, so that email is logged as an error and not sent. Change it to @Model.Type?.Name.
  • Rollback: revert the merge. No schema or data changes to undo.

Closes #69
Closes #70
Closes #71

🤖 Generated with Claude Code

@claude

claude Bot commented Nov 25, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@Lantzify
Lantzify merged commit 76162b3 into v17/main Nov 25, 2026
6 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

1 participant