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

Improved API #19

Merged
merged 15 commits into from
Jun 2, 2016
Merged

Improved API #19

merged 15 commits into from
Jun 2, 2016

Conversation

Cerfoglg
Copy link
Contributor

@Cerfoglg Cerfoglg commented May 25, 2016

Works on #16, works on #13, fixes #8

  

@VincenzoFerme
Copy link
Member

@Cerfoglg does not build

@VincenzoFerme
Copy link
Member

You declared #8 as fixed, but e.g., I don't see you add explicative comments. Check that #8 is actually fixed.

@Cerfoglg
Copy link
Contributor Author

@VincenzoFerme Fixed the deps (I hate golang so much), and added comments

)

type Response struct {
Copy link
Member

Choose a reason for hiding this comment

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

Send also the actual result of the query back

@VincenzoFerme
Copy link
Member

You miss the .codeclimate file in the https://github.com/Cerfoglg/monitors/tree/env-variables branch related to this pull request.

@VincenzoFerme
Copy link
Member

VincenzoFerme commented May 26, 2016

In order to declare #16 as fixed, you should document the APIs in the issue.

The same applies for #13

@@ -39,19 +40,30 @@ func queryHandler(w http.ResponseWriter, r *http.Request) {
}
if name == value {
Copy link
Member

Choose a reason for hiding this comment

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

What about the false alternative to the response?

@VincenzoFerme
Copy link
Member

@Cerfoglg I reviewed the pull request. See all the comments remaining in the top comment of the issue.

@@ -48,14 +48,22 @@ func queryHandler(w http.ResponseWriter, r *http.Request) {
//fmt.Fprintf(w, "Row "+strconv.Itoa(rowI)+" matches "+value+" \n")
response = Response{true}
}
if(method == "nequal") {
Copy link
Member

Choose a reason for hiding this comment

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

else if

@VincenzoFerme
Copy link
Member

@Cerfoglg you don' actually need to add the codeclimate file, just synch with the upstream repo because it is already there.

@Cerfoglg
Copy link
Contributor Author

@VincenzoFerme There doesn't seem to be any codeclimate file on the upstream repo

@VincenzoFerme
Copy link
Member

@VincenzoFerme
Copy link
Member

@Cerfoglg this is not done #19 (comment). It also impacts the description here: #16 (comment)

)

// Struct for the Json respone for this monitor
type Response struct {
Copy link
Member

Choose a reason for hiding this comment

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

👍

@Cerfoglg
Copy link
Contributor Author

@VincenzoFerme This should all be okay now

@@ -35,35 +36,40 @@ func queryHandler(w http.ResponseWriter, r *http.Request) {
}
// Checks over the rows if the comparison holds
rowI := 0
Copy link
Member

Choose a reason for hiding this comment

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

Why do you need this variable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@VincenzoFerme turns out I don't, I had it in case I needed the row index. Removed it.

@VincenzoFerme
Copy link
Member

@Cerfoglg reviewed again. You can see the remaining task in the list in the first comment.

@Cerfoglg
Copy link
Contributor Author

Cerfoglg commented Jun 2, 2016

@VincenzoFerme ready now

@VincenzoFerme
Copy link
Member

👍

@VincenzoFerme VincenzoFerme merged commit 6a7347a into benchflow:dev Jun 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Make the implemented monitors clean and remove hard coded stuff
2 participants