-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the retired status to tickets (#1753)
# What it does Add the retired status to tickets, always change an item's status to be retired when a retired ticket is created or a ticket is updated to retired. # Why it is important #1745 # UI Change Screenshot Item's ticket page with no tickets: ![Screenshot 2024-11-13 at 2 51 57 PM](https://github.com/user-attachments/assets/f2019d17-abd0-42de-97a5-7715bf96e70d) Item's ticket page after creating a "retired" ticket: ![Screenshot 2024-11-13 at 2 52 26 PM](https://github.com/user-attachments/assets/3ac0f2d2-3fd3-4652-ac7a-60736432cf60) Item's ticket page with an "assess" ticket: ![Screenshot 2024-11-13 at 2 53 16 PM](https://github.com/user-attachments/assets/d592b21d-8d1d-4a74-80af-83ac407f2239) Item's ticket page after updating the "assess" ticket to "retired": ![Screenshot 2024-11-13 at 2 53 33 PM](https://github.com/user-attachments/assets/df38241b-8b11-4dbe-a1db-5b4220c8c8de) # Implementation notes I suppose it's possible for the item update to fail (although I don't see how), but I used `update!` so it should surface if it does.
- Loading branch information
Showing
6 changed files
with
64 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
class AddRetiredToTicketStatus < ActiveRecord::Migration[7.2] | ||
def up | ||
add_enum_value :ticket_status, "retired" | ||
end | ||
|
||
def down | ||
raise ActiveRecord::IrreversibleMigration | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters