Skip to content

Turn obsolete error into warning#3172

Merged
srfrog merged 2 commits intomasterfrom
srfrog/issue-3171_wrong_use_of_var_on_empty
Mar 27, 2019
Merged

Turn obsolete error into warning#3172
srfrog merged 2 commits intomasterfrom
srfrog/issue-3171_wrong_use_of_var_on_empty

Conversation

@srfrog
Copy link
Copy Markdown
Contributor

@srfrog srfrog commented Mar 18, 2019

The default value logic obsoleted this error. When generating the output graph
we already have all the values necessary. This error was when we needed to match uidToVal
to NeedsVar.

Closes #3171


This change is Reviewable

The default value logic obseleted this error. When generating the output graph
we already have all the values necessary. This error was when we needed to match uidToVal
to NeedsVar.
@srfrog srfrog marked this pull request as ready for review March 20, 2019 22:06
Copy link
Copy Markdown
Contributor

@manishrjain manishrjain left a comment

Choose a reason for hiding this comment

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

:lgtm: Got a comment. Remove the log.

Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @srfrog)


query/query.go, line 343 at r1 (raw file):

func addInternalNode(pc *SubGraph, uid uint64, dst outputNode) error {
	if len(pc.Params.uidToVal) == 0 {
		glog.V(2).Infof("Wrong use of var() with %v.", pc.Params.NeedsVar)

Can just skip the info log as well.

@srfrog srfrog added the exp/beginner Something most people could solve. label Mar 26, 2019
Copy link
Copy Markdown
Contributor Author

@srfrog srfrog left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @manishrjain)


query/query.go, line 343 at r1 (raw file):

Previously, manishrjain (Manish R Jain) wrote…

Can just skip the info log as well.

Done.

@srfrog srfrog merged commit 9ac0414 into master Mar 27, 2019
@srfrog srfrog deleted the srfrog/issue-3171_wrong_use_of_var_on_empty branch March 27, 2019 00:45
dna2github pushed a commit to dna2fork/dgraph that referenced this pull request Jul 19, 2019
* query/query.go: turn obsolete error into warning

The default value logic obseleted this error. When generating the output graph
we already have all the values necessary. This error was when we needed to match uidToVal
to NeedsVar.

* query/query.go: remove info log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exp/beginner Something most people could solve.

Development

Successfully merging this pull request may close these issues.

2 participants