-
Notifications
You must be signed in to change notification settings - Fork 764
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
Conversation
PTAL |
PTAL |
@LiuJi-Jim FYI |
Please update the comment |
return nil, err | ||
} | ||
for _, taskDAG := range taskDAGList { | ||
blockedBy = append(blockedBy, strconv.Itoa(taskDAG.ToTaskID)) |
There was a problem hiding this comment.
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.
In #1051, the type of
BlockedBy
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.