Skip to content
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

Refactor: separated sr creation and starting of sr #52

Merged
merged 3 commits into from
Feb 3, 2024

Conversation

Zheng-Zhi-Qiang
Copy link
Collaborator

Description

In this PR, I refactored to separate the creation of a SR and the trigger to start the SR.

@Zheng-Zhi-Qiang Zheng-Zhi-Qiang added backend Backend related refactor Code refactor or updates labels Feb 3, 2024
@Zheng-Zhi-Qiang Zheng-Zhi-Qiang added this to the M1: Basic setup milestone Feb 3, 2024
@Zheng-Zhi-Qiang Zheng-Zhi-Qiang self-assigned this Feb 3, 2024
Copy link
Owner

@joshtyf joshtyf left a comment

Choose a reason for hiding this comment

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

left a comment

JSONError(w, handlermodels.NewHttpError(errors.New("internal server error")), http.StatusInternalServerError)
return
}
srm, err := database.NewServiceRequest(client).GetById(requestId)
Copy link
Owner

Choose a reason for hiding this comment

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

you should check the current status of this service request. we don't want to start a NewServiceRequestEvent on an already started service request

@joshtyf joshtyf merged commit d10997d into main Feb 3, 2024
2 checks passed
@Zheng-Zhi-Qiang Zheng-Zhi-Qiang deleted the refactor/separate-sr-creation-and-sr-start branch February 3, 2024 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Backend related refactor Code refactor or updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants