-
Notifications
You must be signed in to change notification settings - Fork 141
feat(tickets): add way to track changes #1102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@crowlKats 3 months since this pr has been opened can I have review ? |
<div> | ||
The ticket was submitted. You can view it{" "} | ||
<a href={`/ticket/${ticket.value!.id}`} class="link"> | ||
<a href={`/ticket/${ticket.value!}`} class="link"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change seems wrong
let id = match req.param_uuid("id") { | ||
Ok(id) => id, | ||
Err(_) => { | ||
return Err(ApiError::MalformedRequest { | ||
msg: "Invalid ID".into(), | ||
}) | ||
} | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
let db = match req.data::<Database>() { | ||
Some(db) => db, | ||
None => return Err(ApiError::InternalServerError), | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
Ok(Some(ticket)) => ticket, | ||
Ok(None) => return Err(ApiError::TicketNotFound), | ||
Err(_) => return Err(ApiError::InternalServerError), | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
Description
Adding a way to track changing state of a tickets
PR Checklist
conventional commits
description of the changes and rason behind them.
recording of the changes.
If it affect colors, please include screenshots/recording in both
light and dark mode.
And if changing dababase queries, be sure you have ran
sqlx prepare
and committed the changes in the
.sqlx
directory.