Skip to content

Commit f4747a5

Browse files
authored
Merge pull request #7410 from googleapis/nodejs-firestore-migration
migrate code from googleapis/nodejs-firestore
2 parents dc04e0c + 2b7cd5b commit f4747a5

480 files changed

Lines changed: 301140 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODEOWNERS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@
1010
/handwritten/bigquery @googleapis/bigquery-team
1111
/handwritten/cloud-profiler @googleapis/cloud-profiler-team
1212
/handwritten/storage @googleapis/gcs-team
13-
/handwritten/spanner @googleapis/spanner-team
13+
/handwritten/firestore @googleapis/firestore-team
14+
/handwritten/spanner @googleapis/spanner-team

.release-please-manifest.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"handwritten/bigquery": "8.2.0",
33
"handwritten/cloud-profiler": "6.0.4",
44
"handwritten/datastore": "10.1.0",
5+
"handwritten/firestore": "8.3.0",
56
"handwritten/logging-bunyan": "5.1.1",
67
"handwritten/logging-winston": "6.0.1",
78
"handwritten/spanner": "8.6.0",

handwritten/firestore/.OwlBot.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
16+
deep-remove-regex:
17+
- /owl-bot-staging
18+
19+
deep-copy-regex:
20+
- source: /google/firestore/(v.*)/.*-nodejs
21+
dest: /owl-bot-staging/firestore/$1
22+
- source: /google/firestore/admin/(v.*)/.*-nodejs
23+
dest: /owl-bot-staging/admin/$1/$2
24+
25+
begin-after-commit-hash: d3509d2520fb8db862129633f1cf8406d17454e1
26+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
**/node_modules
2+
**/coverage
3+
test/fixtures
4+
build/
5+
docs/
6+
protos/
7+
samples/generated/
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"extends": "./node_modules/gts",
3+
"overrides": [
4+
{
5+
"files": [
6+
"dev/src/**/*.ts"
7+
],
8+
"excludedFiles": [
9+
"dev/src/v1/*.ts",
10+
"dev/src/v1beta1/*.ts"
11+
],
12+
"parser": "@typescript-eslint/parser",
13+
"rules": {
14+
"@typescript-eslint/explicit-function-return-type": [
15+
"error",
16+
{
17+
"allowExpressions": true,
18+
"allowTypedFunctionExpressions": true
19+
}
20+
],
21+
"no-console": ["error", {"allow": ["error"]}],
22+
"@typescript-eslint/no-unused-vars": [
23+
"warn",
24+
{
25+
// Ignore args that are underscore only
26+
"argsIgnorePattern": "^_$"
27+
}
28+
]
29+
}
30+
},
31+
{
32+
"files": [
33+
"dev/test/*.ts",
34+
"dev/system-test/*.ts"
35+
],
36+
"parser": "@typescript-eslint/parser",
37+
"rules": {
38+
"no-restricted-properties": [
39+
"error",
40+
{
41+
"object": "describe",
42+
"property": "only"
43+
},
44+
{
45+
"object": "it",
46+
"property": "only"
47+
}
48+
],
49+
"@typescript-eslint/no-unused-vars": [
50+
"warn",
51+
{
52+
// Ignore args that are underscore only
53+
"argsIgnorePattern": "^_$"
54+
}
55+
],
56+
"@typescript-eslint/no-floating-promises": "warn"
57+
}
58+
},
59+
{
60+
"files": [
61+
"dev/src/v1/**/*.ts",
62+
"dev/src/v1beta1/**/*.ts",
63+
"dev/test/gapic_firestore_v1.ts",
64+
"dev/test/gapic_firestore_admin_v1.ts",
65+
"dev/test/gapic_firestore_admin_v1.ts"
66+
],
67+
"rules": {
68+
"@typescript-eslint/no-explicit-any": ["off"],
69+
"@typescript-eslint/no-floating-promises": ["off"]
70+
}
71+
}
72+
]
73+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.ts text eol=lf
2+
*.js text eol=lf
3+
protos/* linguist-generated
4+
**/api-extractor.json linguist-language=JSON-with-Comments

handwritten/firestore/.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
**/*.log
2+
**/node_modules
3+
/.coverage
4+
/coverage
5+
/.nyc_output
6+
/docs/
7+
/out/
8+
/build/
9+
temp/
10+
types/tsdoc-metadata.json
11+
system-test/secrets.js
12+
system-test/*key.json
13+
*.lock
14+
.DS_Store
15+
package-lock.json
16+
__pycache__

handwritten/firestore/.idea/runConfigurations/Conformance_Tests.xml

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

handwritten/firestore/.idea/runConfigurations/System_Test.xml

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

handwritten/firestore/.idea/runConfigurations/Unit_Tests.xml

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)