-
Notifications
You must be signed in to change notification settings - Fork 59
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
Added example region-tag for Family.js #262
Added example region-tag for Family.js #262
Conversation
Codecov Report
@@ Coverage Diff @@
## master #262 +/- ##
=======================================
Coverage ? 100%
=======================================
Files ? 10
Lines ? 1281
Branches ? 0
=======================================
Hits ? 1281
Misses ? 0
Partials ? 0
Continue to review full report at Codecov.
|
ad72fc3
to
fd4f38f
Compare
}); | ||
|
||
it('should create a column family', function(done) { | ||
familySnippets.createColmFamily(INSTANCE_ID, TABLE_ID, FAMILY_ID, err => { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
samples/document-snippets/family.js
Outdated
.then(result => { | ||
const family = result[0]; | ||
// let apiResponse = result[1]; | ||
callback(null, family); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
26384d3
to
ba03406
Compare
9c89117
to
1a8fbaf
Compare
samples/document-snippets/family.js
Outdated
// const apiResponse = result[1]; | ||
}) | ||
.catch(err => { | ||
// handle error |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
samples/document-snippets/family.js
Outdated
// [END bigtable_get_family_meta] | ||
callback(); | ||
}, | ||
setMetaData: (instanceId, tableId, familyId, callback) => { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
samples/document-snippets/family.js
Outdated
// [END bigtable_get_family] | ||
callback(); | ||
}, | ||
getMetaData: (instanceId, tableId, familyId, callback) => { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
samples/document-snippets/family.js
Outdated
const table = instance.table(tableId); | ||
const family = table.family(familyId); | ||
// [START bigtable_set_family_meta] | ||
var metadata = { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -0,0 +1,75 @@ | |||
/** | |||
* Copyright 2016 Google Inc. All Rights Reserved. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
familySnippets.getFamily(INSTANCE_ID, TABLE_ID, FAMILY_ID, done); | ||
}); | ||
|
||
it('should get family meta-data', function(done) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
familySnippets.getMetaData(INSTANCE_ID, TABLE_ID, FAMILY_ID, done); | ||
}); | ||
|
||
it('should set family meta-data', function(done) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
f916a56
to
07ba77d
Compare
01edd6f
to
3763d72
Compare
3763d72
to
308d9ff
Compare
1b1e028
to
7a94e77
Compare
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.
Overall, looks good. Let's keep the documentation consistent, and include the @require
in the docs, even though we didn't have that before.
samples/document-snippets/family.js
Outdated
const instance = bigtable.instance(instanceId); | ||
const table = instance.table(tableId); | ||
const family = table.family(familyId); | ||
// [START bigtable_create_family] |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
samples/document-snippets/family.js
Outdated
const table = instance.table(tableId); | ||
const family = table.family(familyId); | ||
|
||
// [START bigtable_exists_family] |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@vijay-qlogic, can you please address the comments? |
@stephenplusplus, can we move forward with this PR? |
Fixes #157 for family.js (it's a good idea to open an issue first for discussion)