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

Update cli endpoint #1073

Merged
merged 4 commits into from
Oct 30, 2024
Merged

Update cli endpoint #1073

merged 4 commits into from
Oct 30, 2024

Conversation

thibaultleouay
Copy link
Member

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation

Description

A picture tells a thousand words (if any)

Before this PR

{Please add a screenshot here}

After this PR

{Please add a screenshot here}

Related Issue (optional)

Copy link

vercel bot commented Oct 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
openstatus-web 🛑 Canceled (Inspect) Oct 29, 2024 9:37pm

@@ -302,5 +307,5 @@ func (h Handler) HTTPCheckerHandler(c *gin.Context) {

}

c.JSON(http.StatusOK, gin.H{"message": "ok"})
Copy link
Member Author

Choose a reason for hiding this comment

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

@mxkaske we used to return something dummy
I'm returning the result of the ping instead
This is useful to get instant result in the /run endoint

@@ -196,7 +207,7 @@ func (h Handler) TCPHandler(c *gin.Context) {
}
}

c.JSON(http.StatusOK, gin.H{"message": "ok"})
c.JSON(http.StatusOK, response)
Copy link
Member Author

Choose a reason for hiding this comment

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

Same as above
Instead of dummy data return the actual result useful for the run endpoint

Copy link
Member Author

Choose a reason for hiding this comment

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

This is mostly copy pasta from trigger/post might going to refactor it after 🤣

@thibaultleouay thibaultleouay merged commit d633421 into main Oct 30, 2024
8 checks passed
@mxkaske mxkaske deleted the update-cli-endpoint branch November 22, 2024 14:05
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.

1 participant