-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fix(live): fix live loader to load with force namespace #7445
Conversation
There was a problem hiding this 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 3 files reviewed, 1 unresolved discussion (waiting on @manishrjain and @vvbalaji-dgraph)
dgraph/cmd/live/run.go, line 680 at r1 (raw file):
// will be galaxy-wide. ctx = x.AttachGalaxyOperation(ctx, opt.namespaceToLoad) // We don't support upsert predicate while loading data in multiple namespace.
Add a test for this change.
@@ -284,6 +284,18 @@ func IsGalaxyOperation(ctx context.Context) bool { | |||
return len(ns) > 0 && (ns[0] == "true" || ns[0] == "True") | |||
} | |||
|
|||
func GetForceNamespace(ctx context.Context) string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to go into x?
This PR fixes the live loader for loading data using
force-namespace
flag.Earlier, the schema alteration was not following the passed flag.
This change is