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(gh-ost): task blocked by implementation #1110

Merged
merged 4 commits into from
Apr 14, 2022

Conversation

RainbowDashy
Copy link
Contributor

@RainbowDashy RainbowDashy commented Apr 14, 2022

In #1051, the type ofBlockedBy is []int, which is enough but is unfortunately not supported by jsonapi (google/jsonapi#209). So in this PR, I change the type to []string to workaround.

@RainbowDashy RainbowDashy requested a review from d-bytebase April 14, 2022 06:19
@RainbowDashy
Copy link
Contributor Author

PTAL

d-bytebase
d-bytebase previously approved these changes Apr 14, 2022
api/task.go Outdated Show resolved Hide resolved
@RainbowDashy RainbowDashy requested a review from d-bytebase April 14, 2022 08:26
@RainbowDashy
Copy link
Contributor Author

PTAL

@d-bytebase
Copy link
Contributor

@LiuJi-Jim FYI

@tianzhou
Copy link
Collaborator

In #1051, the type ofBlockedBy is []int, which is enough but is unfortunately not supported by jsonapi (google/jsonapi#209). So in this PR, I change the type to []*Task.

Please update the comment

@RainbowDashy RainbowDashy merged commit ed012ef into bytebase:main Apr 14, 2022
return nil, err
}
for _, taskDAG := range taskDAGList {
blockedBy = append(blockedBy, strconv.Itoa(taskDAG.ToTaskID))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this reversed?

From -> To

Thus, it's the toTask blocked by the fromTask.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants