Skip to content

Updated get service requests by workflow name API#82

Open
tejash-jl wants to merge 7 commits intomasterfrom
issues/19
Open

Updated get service requests by workflow name API#82
tejash-jl wants to merge 7 commits intomasterfrom
issues/19

Conversation

@tejash-jl
Copy link
Copy Markdown
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
Comment thread handlers/service_request_handler.go Outdated
@dantinkakkar
Copy link
Copy Markdown
Member

Do we have a linter set up?

@tejash-jl
Copy link
Copy Markdown
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
Copy Markdown
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

Comment thread models/sort_fields.go
return false
}
supportedKeys := []string{"id", "name", "created_at"}
supportedKeys := []string{"id", "name", "created_at", "workflow_name", "status"}
Copy link
Copy Markdown
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
Copy Markdown
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