Skip to content

Conversation

AugustinMauroy
Copy link
Contributor

Description

Adding a way to track changing state of a tickets

Capture d’écran 2025-05-08 à 16 41 23

PR Checklist

  • The PR title follows
    conventional commits
  • Is this closing an open issue? If so, link it, else include a proper
    description of the changes and rason behind them.
  • Does the PR have changes to the frontend? If so, include screenshots or a
    recording of the changes.

    If it affect colors, please include screenshots/recording in both
    light and dark mode.
  • Does the PR have changes to the backend? If so, make sure tests are added.

    And if changing dababase queries, be sure you have ran sqlx prepare
    and committed the changes in the .sqlx directory.

@AugustinMauroy
Copy link
Contributor Author

@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">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change seems wrong

Comment on lines +41 to +48
let id = match req.param_uuid("id") {
Ok(id) => id,
Err(_) => {
return Err(ApiError::MalformedRequest {
msg: "Invalid ID".into(),
})
}
};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

Comment on lines +51 to +54
let db = match req.data::<Database>() {
Some(db) => db,
None => return Err(ApiError::InternalServerError),
};
Copy link
Collaborator

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),
};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants