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

feat: update definitions endpoint #112

Merged
merged 2 commits into from Apr 7, 2021
Merged

feat: update definitions endpoint #112

merged 2 commits into from Apr 7, 2021

Conversation

mathiaHT
Copy link
Contributor

@mathiaHT mathiaHT commented Apr 2, 2021

No description provided.

@@ -2,9 +2,26 @@ defmodule StepFlow.WorkflowDefinitionView do
use StepFlow, :view
alias StepFlow.WorkflowDefinitionView

def render("index.json", %{workflow_definitions: %{data: workflow_definitions, total: total}}) do
def render("index.json", %{
workflow_definitions: %{data: workflow_definitions, total: total, mode: "full"}
Copy link
Contributor

Choose a reason for hiding this comment

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

do not match here, just wrote:

def render("index.json", %{workflow_definitions: %{data: workflow_definitions, total: total, mode: mode}
   data: render_many(workflow_definitions, WorkflowDefinitionView, "workflow_definition_#{mode}.json"),
end

end
end

defp filter_by_laber_or_identifier(query, search) do
Copy link
Contributor

Choose a reason for hiding this comment

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

label ?

Mathia Haure-Touze added 2 commits April 7, 2021 14:51
fix travis using postgres 9.6

fix test list definitions
mix format

match definition view on mode
@MarcAntoine-Arnaud MarcAntoine-Arnaud merged commit 92c19a6 into media-io:master Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants