Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(403)

Unified Diff: appengine/cmd/dm/mutate/ensure_quest_attempts.go

Issue 1537883002: Initial distributor implementation (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: fix imports and make dummy.go a real file Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: appengine/cmd/dm/mutate/ensure_quest_attempts.go
diff --git a/appengine/cmd/dm/mutate/ensure_quest_attempts.go b/appengine/cmd/dm/mutate/ensure_quest_attempts.go
index 09479acf0515f87edcd7b9f00b211431c0a5ee96..2e5d902f153030fa1ea47684358a7469a6b42923 100644
--- a/appengine/cmd/dm/mutate/ensure_quest_attempts.go
+++ b/appengine/cmd/dm/mutate/ensure_quest_attempts.go
@@ -31,13 +31,13 @@ type EnsureQuestAttempts struct {
// Root implements tumble.Mutation.
func (e *EnsureQuestAttempts) Root(c context.Context) *datastore.Key {
- return datastore.Get(c).KeyForObj(&model.Quest{ID: e.Quest.ID})
+ return model.QuestKeyFromID(c, e.Quest.ID)
}
// RollForward implements tumble.Mutation.
func (e *EnsureQuestAttempts) RollForward(c context.Context) (muts []tumble.Mutation, err error) {
if !e.DoNotMergeQuest {
- if _, err = (&MergeQuest{e.Quest}).RollForward(c); err != nil {
+ if _, err = (&MergeQuest{Quest: e.Quest}).RollForward(c); err != nil {
return
}
}
« no previous file with comments | « appengine/cmd/dm/mutate/ensure_attempt_test.go ('k') | appengine/cmd/dm/mutate/ensure_quest_attempts_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698