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

Issue 1574353004: GitHub #8: Seed indexes from index.yml (Closed)

Created:
4 years, 11 months ago by nishanths (utexas)
Modified:
4 years, 10 months ago
Reviewers:
dnj, Vadim Sh., estaab, iannucci
CC:
chromium-reviews, infra-reviews+luci-gae_chromium.org
Base URL:
https://github.com/luci/gae@master
Target Ref:
refs/heads/master
Project:
luci-gae
Visibility:
Public.

Description

Fixes #8: Seed indexes from index.yml - Add `ParseIndexYAML` and `FindAndParseIndexYAML` functions to service/datastore - Add YAML marshalling and unmarshalling for IndexDefinition and IndexColumn - Add tests for the changes - Imports: additional package: gopkg.in/yaml.v2 https://github.com/luci/gae/issues/8 Closes #8 R=dnj@chromium.org, estaab@chromium.org, iannucci@chromium.org, vadimsh@chromium.org BUG= Committed: https://github.com/luci/gae/commit/1fb004af6ec3634b29cd97406e17d4bb0a7d2236

Patch Set 1 #

Total comments: 23

Patch Set 2 : Address review comments: more tests + moving functions out of Testable + better style #

Patch Set 3 : Fix missing parallel call in test #

Total comments: 1

Patch Set 4 : Use runtime.Callers instead of runtime.Caller #

Total comments: 4

Patch Set 5 : Improve loop style + Edit doc comments #

Patch Set 6 : path argument in FindAndParseIndexYAML, add a couple of tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+400 lines, -3 lines) Patch
M service/datastore/datastore.go View 1 2 3 4 5 2 chunks +91 lines, -0 lines 0 comments Download
M service/datastore/datastore_test.go View 1 2 3 4 5 2 chunks +237 lines, -0 lines 0 comments Download
M service/datastore/index.go View 1 3 chunks +53 lines, -3 lines 0 comments Download
M service/datastore/index_test.go View 1 2 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (5 generated)
nishanths (utexas)
4 years, 11 months ago (2016-01-13 08:53:06 UTC) #1
nishanths (utexas)
On 2016/01/13 08:53:06, nishanths wrote: Potential feedback areas: - `panic` calls in FindAndAddIndexYAML and ParseIndexYAML ...
4 years, 11 months ago (2016-01-13 08:56:04 UTC) #2
dnj
Looks mostly good! The YAML import is fine. https://chromiumcodereview.appspot.com/1574353004/diff/1/impl/memory/datastore.go File impl/memory/datastore.go (right): https://chromiumcodereview.appspot.com/1574353004/diff/1/impl/memory/datastore.go#newcode216 impl/memory/datastore.go:216: if ...
4 years, 11 months ago (2016-01-13 16:16:40 UTC) #3
iannucci
Very cool! Some addon comments to what dnj said. https://chromiumcodereview.appspot.com/1574353004/diff/1/impl/memory/datastore.go File impl/memory/datastore.go (right): https://chromiumcodereview.appspot.com/1574353004/diff/1/impl/memory/datastore.go#newcode210 impl/memory/datastore.go:210: ...
4 years, 11 months ago (2016-01-13 19:12:21 UTC) #4
nishanths (utexas)
https://chromiumcodereview.appspot.com/1574353004/diff/1/impl/memory/datastore.go File impl/memory/datastore.go (right): https://chromiumcodereview.appspot.com/1574353004/diff/1/impl/memory/datastore.go#newcode210 impl/memory/datastore.go:210: panic(fmt.Errorf("failed to find index YAML file")) On 2016/01/13 19:12:20, ...
4 years, 11 months ago (2016-01-14 21:12:56 UTC) #5
nishanths (utexas)
Please let me know if anything needs to be improved! https://chromiumcodereview.appspot.com/1574353004/diff/1/impl/memory/datastore_test.go File impl/memory/datastore_test.go (right): https://chromiumcodereview.appspot.com/1574353004/diff/1/impl/memory/datastore_test.go#newcode606 ...
4 years, 11 months ago (2016-01-14 21:15:14 UTC) #6
iannucci
lgtm :) Thanks again! https://chromiumcodereview.appspot.com/1574353004/diff/40001/service/datastore/datastore.go File service/datastore/datastore.go (right): https://chromiumcodereview.appspot.com/1574353004/diff/40001/service/datastore/datastore.go#newcode384 service/datastore/datastore.go:384: _, path, _, ok := ...
4 years, 11 months ago (2016-01-15 03:06:08 UTC) #8
nishanths (utexas)
On 2016/01/15 03:06:08, iannucci wrote: > lgtm :) Thanks again! > > https://chromiumcodereview.appspot.com/1574353004/diff/40001/service/datastore/datastore.go > File ...
4 years, 11 months ago (2016-01-15 04:25:06 UTC) #9
iannucci
https://chromiumcodereview.appspot.com/1574353004/diff/60001/service/datastore/datastore.go File service/datastore/datastore.go (right): https://chromiumcodereview.appspot.com/1574353004/diff/60001/service/datastore/datastore.go#newcode385 service/datastore/datastore.go:385: n := runtime.Callers(0, pc) try for _, elem := ...
4 years, 11 months ago (2016-01-15 04:32:53 UTC) #10
nishanths (utexas)
https://chromiumcodereview.appspot.com/1574353004/diff/60001/service/datastore/datastore.go File service/datastore/datastore.go (right): https://chromiumcodereview.appspot.com/1574353004/diff/60001/service/datastore/datastore.go#newcode385 service/datastore/datastore.go:385: n := runtime.Callers(0, pc) On 2016/01/15 04:32:53, iannucci wrote: ...
4 years, 11 months ago (2016-01-15 06:17:04 UTC) #11
iannucci
A thought just occurred to me: we often structure apps like: frontend/ index.yml service/ some_test.go ...
4 years, 11 months ago (2016-01-15 17:23:46 UTC) #13
iannucci
Oh and could you change the CL message to include the updated function names (there ...
4 years, 11 months ago (2016-01-15 17:25:32 UTC) #14
nishanths (utexas)
Definitely a good idea on the path parameter for `FindAndParseIndexYAML`. Should I make it an ...
4 years, 11 months ago (2016-01-15 17:37:29 UTC) #15
iannucci
Just make an empty string do what it does now (e.g. "" == ".") On ...
4 years, 11 months ago (2016-01-15 17:56:03 UTC) #16
iannucci
On 2016/01/15 17:56:03, iannucci wrote: > Just make an empty string do what it does ...
4 years, 10 months ago (2016-01-29 21:55:21 UTC) #18
nishanths (utexas)
On 2016/01/29 21:55:21, iannucci wrote: > On 2016/01/15 17:56:03, iannucci wrote: > > Just make ...
4 years, 10 months ago (2016-01-30 02:35:23 UTC) #19
iannucci
ah sorry my bad! The review system doesn't send emails on new patchset uploads (it's ...
4 years, 10 months ago (2016-01-30 02:45:13 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1574353004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1574353004/100001
4 years, 10 months ago (2016-01-30 02:45:25 UTC) #22
commit-bot: I haz the power
4 years, 10 months ago (2016-01-30 02:48:34 UTC) #24
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://github.com/luci/gae/commit/1fb004af6ec3634b29cd97406e17d4bb0a7d2236

Powered by Google App Engine
This is Rietveld 408576698