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

Workflow data structure changes lead to page display errors #5137

Closed
celeskyking opened this issue Nov 28, 2022 · 1 comment · Fixed by #5276
Closed

Workflow data structure changes lead to page display errors #5137

celeskyking opened this issue Nov 28, 2022 · 1 comment · Fixed by #5276
Labels
area/velaux velaux related issue, should be removed to https://github.com/kubevela/velaux

Comments

@celeskyking
Copy link

Describe the bug
vela-apiserver is upgraded from 1.5.4 to 1.6.3, when i update workflow step using veluax , the page display is abnormal, and the workflow data cannot be saved normally. I found that the data structure of WorkflowStep and WorkflowStatus has changed from 1.5.x to 1.6.x, resulting in the data stored in mongo also changed, I tried to add a bson tag in the WorkflowStep and WorkflowStatus structure,and the page can be displayed normally

updated:

type WorkflowStep struct {
	WorkflowStepBase `json:",inline" bson:",inline"`
	SubSteps         []WorkflowStepBase `json:"subSteps,omitempty"`
}

type WorkflowStepStatus struct {
	StepStatus     `json:",inline" bson:",inline"`
	SubStepsStatus []StepStatus `json:"subSteps,omitempty"`
}

To Reproduce

update kubevela from 1.5.x to 1.6.x

Expected behavior

everything is ok

Screenshots
image

KubeVela Version
vela-core 1.5.3 ->1.6.3
vela-apiserver 1.5.4 -> 1.6.3
velaux 1.5.4 -> 1.6.3
database: mongo

Kubernetes Version
1.20.8

@barnettZQG
Copy link
Collaborator

/cc @chivalryq

@Somefive Somefive added the area/velaux velaux related issue, should be removed to https://github.com/kubevela/velaux label Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/velaux velaux related issue, should be removed to https://github.com/kubevela/velaux
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants