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

[Merged by Bors] - fix: update BlockTemplate types to use diagramID instead of new structure (CT-679) #346

Closed

Conversation

viniciusdacal
Copy link
Contributor

@viniciusdacal viniciusdacal commented Aug 9, 2022

Fixes or implements CT-679

Brief description. What is this change?

Implementation details. How do you make this change?

We decided to use diagram to save the templates. That will better support migrations and it will makes things easier if we decide to support edition of a template.
To support that, we introduced a new diagram type: TEMPLATE.
Also, version will only point out to a diagramID instead of saving the whole node inside it.

@viniciusdacal viniciusdacal force-pushed the vinicius/add-block-template-types/CT-679 branch from 0892b8d to 263965e Compare August 9, 2022 14:33
@viniciusdacal viniciusdacal marked this pull request as ready for review August 9, 2022 14:34
@viniciusdacal viniciusdacal self-assigned this Aug 9, 2022
@@ -1,7 +1,5 @@
import { BaseDiagramNode } from '../base';

export interface BlockTemplate {
Copy link
Member

Choose a reason for hiding this comment

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

why do we need BlockTemplate type?

@viniciusdacal viniciusdacal force-pushed the vinicius/add-block-template-types/CT-679 branch from 263965e to 22a01bb Compare August 9, 2022 16:28
@@ -0,0 +1,5 @@
export interface CanvasTemplate {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add an id field so for the endpoints we can select by id instead of name?

@viniciusdacal viniciusdacal force-pushed the vinicius/add-block-template-types/CT-679 branch from 22a01bb to defe33d Compare August 9, 2022 18:38
@viniciusdacal
Copy link
Contributor Author

bors r+

bors-vf bot pushed a commit that referenced this pull request Aug 9, 2022
…ture (CT-679) (#346)

<!-- You can erase any parts of this template not applicable to your Pull Request. -->

**Fixes or implements CT-679**

### Brief description. What is this change?

<!-- Build up some context for your teammates on the changes made here and potential tradeoffs made and/or highlight any topics for discussion -->
@sonarcloud
Copy link

sonarcloud bot commented Aug 9, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@bors-vf
Copy link

bors-vf bot commented Aug 9, 2022

Pull request successfully merged into master.

Build succeeded:

@bors-vf bors-vf bot changed the title fix: update BlockTemplate types to use diagramID instead of new structure (CT-679) [Merged by Bors] - fix: update BlockTemplate types to use diagramID instead of new structure (CT-679) Aug 9, 2022
@bors-vf bors-vf bot closed this Aug 9, 2022
@bors-vf bors-vf bot deleted the vinicius/add-block-template-types/CT-679 branch August 9, 2022 18:44
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.

4 participants