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

refactor(query): make immediate dependencies default #9114

Merged
merged 3 commits into from
Sep 16, 2024

Conversation

NicholasLYang
Copy link
Contributor

@NicholasLYang NicholasLYang commented Sep 5, 2024

Description

We have a dependencies field on our Package type in turbo query. This returned all the transitive dependencies, i.e. the dependencies of the package's dependencies and their dependencies, and so on. This is a little confusing, so now we have explicit directDependencies, indirectDependencies and allDependencies fields.

Testing Instructions

Tests in command-query.t are updated.

Copy link

vercel bot commented Sep 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 9, 2024 5:10pm
8 Skipped Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview Sep 9, 2024 5:10pm
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview Sep 9, 2024 5:10pm
examples-gatsby-web ⬜️ Ignored (Inspect) Visit Preview Sep 9, 2024 5:10pm
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview Sep 9, 2024 5:10pm
examples-native-web ⬜️ Ignored (Inspect) Visit Preview Sep 9, 2024 5:10pm
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Sep 9, 2024 5:10pm
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview Sep 9, 2024 5:10pm
examples-vite-web ⬜️ Ignored (Inspect) Visit Preview Sep 9, 2024 5:10pm

@NicholasLYang NicholasLYang marked this pull request as ready for review September 5, 2024 19:55
@NicholasLYang NicholasLYang requested a review from a team as a code owner September 5, 2024 19:55
@@ -335,7 +335,7 @@ impl Package {
}

/// The downstream packages that directly depend on this package
async fn immediate_dependencies(&self) -> Result<Vec<Package>, Error> {
async fn dependencies(&self) -> Result<Vec<Package>, Error> {
Copy link
Member

Choose a reason for hiding this comment

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

Should this be direct_dependencies? Gives us the nice direct_dependencies U indirect_dependencies = dependencies relation

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh indirect_dependencies is all transitive dependencies so it's more direct_dependencies ⊆ indirect_dependencies. I'm down to rename it if that's clearer (cc @anthonyshew)

@NicholasLYang NicholasLYang merged commit d0f4a0a into main Sep 16, 2024
40 checks passed
@NicholasLYang NicholasLYang deleted the refactor/rename-dependencies branch September 16, 2024 19:32
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.

2 participants