Skip to content

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
@RainbowDashy RainbowDashy requested a review from d-bytebase April 14, 2022 08:26
@RainbowDashy
Copy link
Contributor Author

PTAL

@d-bytebase
Copy link
Collaborator

@LiuJi-Jim FYI

@tianzhou
Copy link
Member

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
Member

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants