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

Updated get service requests by workflow name API #82

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

tejash-jl
Copy link
Member

  • updated API to support sortBy query
  • updated API to send total service requests count in response.

@tejash-jl tejash-jl added the enhancement New feature or request label Nov 11, 2020
@tejash-jl tejash-jl added this to the Release Thor milestone Nov 11, 2020
@tejash-jl tejash-jl self-assigned this Nov 11, 2020
@dantinkakkar
Copy link
Member

Do we have a linter set up?

@tejash-jl
Copy link
Member Author

tejash-jl commented Nov 11, 2020

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

Copy link
Member

@lohith46 lohith46 left a 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"}
Copy link
Member

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 ??

@priyaaank
Copy link
Member

Sorry, @tejash-jl I took a bit of time to review it. Can you please resolve conflicts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants