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 workflows API #77

Merged
merged 7 commits into from
Nov 10, 2020
Merged

Updated get workflows API #77

merged 7 commits into from
Nov 10, 2020

Conversation

tejash-jl
Copy link
Member

  • updated get workflows API to return total workflows count
  • updated valid list of sortable fields

@tejash-jl tejash-jl self-assigned this Nov 6, 2020
@tejash-jl tejash-jl added the enhancement New feature or request label Nov 6, 2020
@tejash-jl tejash-jl added this to the Release Thor milestone Nov 6, 2020
@@ -144,20 +144,21 @@ func getWorkflows() gin.HandlerFunc {
prepareErrorResponse(err, c)
return
}
workflows, err := services.GetWorkflows(pageNumber, pageSize, sortByFields)
workflows, totalWorkflows, err := services.GetWorkflows(pageNumber, pageSize, sortByFields)
Copy link
Member

Choose a reason for hiding this comment

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

Instead of totalWorkflows, can we rename it to totalWorkflowCount if it makes sense

@tejash-jl tejash-jl merged commit 98a7051 into master Nov 10, 2020
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.

2 participants