Ticket keys in Firestore: issued once, never reused after delete
I split the ticket id from the ticket key so that tickets could move between boards, and then I took moving tickets out of the product. The split stayed. A key like ENG-42 gets pasted into WhatsApp messages, emails, GitHub PR titles and other tickets, and every one of those has to keep pointing at the right ticket for as long as the link exists, including after the ticket is gone. I'm Panth, and…
Ticket IDs and keys are split to allow tickets to move between boards. Each key, such as ENG-42, is stored in a separate document at the top level. When a ticket is deleted, its key remains as a tombstone and cannot be reused. Keys are generated once per ticket, not through querying the highest number, ensuring that a key can never be overwritten. Deleting a ticket retains the key, allowing old links to still point to the now-deleted ticket.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.