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: HEXA-1120 template pipelines and template versions models + endpoint to create template #874

Merged

Conversation

YolanFery
Copy link
Contributor

@YolanFery YolanFery commented Dec 12, 2024

Introduce models for PipelineTemplate and PipelineTemplate versions
Create a first endpoint to create a PipelineTemplate from a Pipeline

Changes

  • New PipelineTemplate and PipelineTemplateVersion
  • First version of the GraphQL Schema
  • Add get_or_create_template to the Pipeline model
  • Unit tests for the new models and method
  • Integ test for the GraphQL Schema
  • Register PipelineTemplateVersion and PipelineTemplate in the admin panel

How/what to test

This is laying foundations for the Template Pipeline feature and should have no impact on the rest

hexa/pipelines/models.py Outdated Show resolved Hide resolved
hexa/template_pipelines/graphql/schema.graphql Outdated Show resolved Hide resolved
Copy link
Member

@qgerome qgerome left a comment

Choose a reason for hiding this comment

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

Template is IMO too broad and may lead to confusion later when we want to templates for another object.

I'd advice to prefix it by Pipeline to avoid clashes in the future. WDYT?

hexa/template_pipelines/graphql/schema.graphql Outdated Show resolved Hide resolved
@YolanFery YolanFery requested a review from qgerome December 17, 2024 12:23
hexa/pipeline_templates/schema/mutations.py Outdated Show resolved Hide resolved
hexa/pipeline_templates/schema/mutations.py Outdated Show resolved Hide resolved
hexa/pipeline_templates/models.py Outdated Show resolved Hide resolved
hexa/pipeline_templates/models.py Show resolved Hide resolved
YolanFery and others added 4 commits December 20, 2024 08:27
…ions-models' of github.com:BLSQ/openhexa-app into HEXA-1120-template-pipelines-template-and-template-versions-models
@YolanFery YolanFery requested a review from nazarfil December 20, 2024 07:50
@nazarfil nazarfil merged commit 22ed895 into main Dec 20, 2024
4 checks passed
@nazarfil nazarfil deleted the HEXA-1120-template-pipelines-template-and-template-versions-models branch December 20, 2024 10:54
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.

3 participants