-
Notifications
You must be signed in to change notification settings - Fork 4
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
Updated get service requests by workflow name API #82
base: master
Are you sure you want to change the base?
Conversation
tejash-jl
commented
Nov 11, 2020
- updated API to support sortBy query
- updated API to send total service requests count in response.
Do we have a linter set up? |
Yes, currently using it locally. Need to run it during the build as well. Created #83 to integrate the GoLint to build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Except for that one small comment, everything seems fine to me
@@ -56,7 +56,7 @@ func verifySortValues(key string, value string) bool { | |||
if value != "desc" && value != "asc" { | |||
return false | |||
} | |||
supportedKeys := []string{"id", "name", "created_at"} | |||
supportedKeys := []string{"id", "name", "created_at", "workflow_name", "status"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tejash-jl We can externalize sort fields to some constants file or env file ??
Sorry, @tejash-jl I took a bit of time to review it. Can you please resolve conflicts? |