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

Bug 1787517: include stack dependencies in revision #32

Merged
merged 1 commit into from
Oct 25, 2022

Conversation

zzzeid
Copy link
Collaborator

@zzzeid zzzeid commented Aug 26, 2022

This change will help Lando calculate stack graph without making
repeated requests to the edge.search endpoint. A similar approach is
already used in Phabricator when loading the revision page.

@zzzeid zzzeid changed the title Bug 1787517: include stack in revision Bug 1787517: include stack in revision data Aug 26, 2022
@zzzeid zzzeid force-pushed the zeid/bug-1787517-show-stack-in-revision branch 2 times, most recently from 96d7d5c to 79f8c46 Compare August 30, 2022 13:27
@zzzeid zzzeid changed the title Bug 1787517: include stack in revision data Bug 1787517: include stack dependencies in revision Aug 30, 2022
@zzzeid zzzeid marked this pull request as ready for review August 30, 2022 13:28
@zzzeid zzzeid requested a review from dklawren August 30, 2022 13:29
@zzzeid zzzeid requested review from cgsheeh and grottohub August 30, 2022 13:39
Comment on lines 1136 to 1137
'depends_on' => $stack_graph->getEdges(DifferentialRevisionDependsOnRevisionEdgeType::EDGECONST,),
'dependents' => $stack_graph->getEdges(DifferentialRevisionDependedOnByRevisionEdgeType::EDGECONST),
Copy link
Member

Choose a reason for hiding this comment

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

Could we make this depended_on to stay consistent with the Phab terminology?

@zzzeid zzzeid requested a review from cgsheeh August 30, 2022 16:53
Copy link
Member

@cgsheeh cgsheeh left a comment

Choose a reason for hiding this comment

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

WFM - I think predecessor/successor would be better, feel free to take or leave.

@zzzeid
Copy link
Collaborator Author

zzzeid commented Aug 30, 2022

WFM - I think predecessor/successor would be better, feel free to take or leave.

I do agree that they are the best terms out there but now that I think about it more, perhaps it should say graph instead, since it is returning a dictionary representing a graph, and not a list of nodes or anything like that. Very similar to what graphlib expects as a graph input (which by some measure, is a Pythonic way of naming).

But perhaps back on the Lando side we should use predecessors/successors.

@zzzeid zzzeid requested a review from cgsheeh August 30, 2022 17:19
This change will help Lando calculate stack graph without making
repeated requests to the `edge.search` endpoint. A similar approach is
already used in Phabricator when loading the revision page.
@zzzeid zzzeid force-pushed the zeid/bug-1787517-show-stack-in-revision branch from f2c975b to d1f0800 Compare October 13, 2022 15:30
@cgsheeh cgsheeh merged commit b00c889 into master Oct 25, 2022
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.

2 participants