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

Allow use of NULL for name in dependency #113

Merged
merged 1 commit into from
Oct 16, 2023
Merged

Allow use of NULL for name in dependency #113

merged 1 commit into from
Oct 16, 2023

Conversation

richfitz
Copy link
Member

This allows use of an id as a query without a name, it would also allows for queries that might compute a name, I guess. Mostly for completeness, but I made the ticket so must have run into a situation where this might have been preferable?

@codecov
Copy link

codecov bot commented Oct 11, 2023

Codecov Report

All modified lines are covered by tests ✅

Files Coverage Δ
R/metadata.R 100.00% <100.00%> (ø)

📢 Thoughts on this report? Let us know!.

@richfitz richfitz marked this pull request as ready for review October 11, 2023 08:38
@richfitz richfitz requested review from r-ash and weshinsley and removed request for r-ash October 11, 2023 08:38
Copy link
Contributor

@weshinsley weshinsley left a comment

Choose a reason for hiding this comment

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

Not quite sure on the logic of the NULL name - but might be a typo on R/metadata.R:282

@@ -276,6 +278,9 @@ static_orderly_dependency <- function(args) {
query <- args$query
files <- args$files

static_name <- static_string(name)
has_name <- !is.null(static_name) || is.null(name)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should there be ! before is.null(name) ?

Copy link
Member Author

Choose a reason for hiding this comment

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

no, here it means that "the name we have is final"

@weshinsley weshinsley self-requested a review October 16, 2023 15:23
@weshinsley weshinsley merged commit 6c9a04f into main Oct 16, 2023
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