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

feat: feedback collection backend #988

Merged
merged 3 commits into from
Sep 26, 2023

Conversation

AvineshTripathi
Copy link
Collaborator

No description provided.

Copy link
Contributor

@shivarm shivarm left a comment

Choose a reason for hiding this comment

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

LGTM

@shivarm
Copy link
Contributor

shivarm commented Sep 22, 2023

@AvineshTripathi FYI

     defer resp.Body.Close()

	// Check response status
	if resp.StatusCode != http.StatusOK {
		logrus.WithField("StatusCode", resp.StatusCode).Error("Feedback request failed")
		c.JSON(http.StatusInternalServerError, gin.H{"error": "Feedback request failed"})
		return
	}

	// Return a success message
	c.JSON(http.StatusOK, gin.H{"message": "Feedback sent successfully"})
}

@AvineshTripathi
Copy link
Collaborator Author

@shivam-sharma7 didn't get you also it's not ready for review, am still working on this

@AvineshTripathi AvineshTripathi marked this pull request as ready for review September 24, 2023 15:24
@mlabouardy mlabouardy added this to the v3.1.1 milestone Sep 26, 2023
@mlabouardy mlabouardy merged commit 9796ca6 into tailwarden:develop Sep 26, 2023
@AvineshTripathi AvineshTripathi deleted the feedback-backend branch August 31, 2024 15:08
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.

4 participants