Skip to content

Commit e1638b7

Browse files
authored
Merge branch 'master' into merge-gqlv2-fix-into-master
2 parents 4be28a9 + fdd29ae commit e1638b7

File tree

9 files changed

+46
-36
lines changed

9 files changed

+46
-36
lines changed

.circleci/config.base.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ executors:
1818
shell: bash.exe
1919
macos_node12: &macos_node12
2020
macos:
21-
xcode: "11.2.1"
21+
xcode: 13.2.1
2222
resource_class: large
2323

2424
defaults: &defaults
@@ -46,6 +46,7 @@ clean_up_e2e_resources: &cleanup_e2e
4646
cd packages/amplify-codegen-e2e-tests
4747
yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM}
4848
working_directory: ~/repo
49+
when: always
4950

5051
jobs:
5152
build:
@@ -79,6 +80,8 @@ jobs:
7980
- equal: [ *windows_node12, << parameters.os >> ]
8081
steps:
8182
- checkout
83+
- run: nvm install 12.22.7
84+
- run: nvm alias default 12.22.7
8285
- run: yarn config set workspaces-experimental true
8386
- run: yarn cache clean --force
8487
- run: yarn run production-build

.circleci/config.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ executors:
1919
shell: bash.exe
2020
macos_node12: &ref_1
2121
macos:
22-
xcode: 11.2.1
22+
xcode: 13.2.1
2323
resource_class: large
2424
defaults:
2525
working_directory: ~/repo
@@ -44,6 +44,7 @@ clean_up_e2e_resources: &ref_7
4444
cd packages/amplify-codegen-e2e-tests
4545
yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM}
4646
working_directory: ~/repo
47+
when: always
4748
jobs:
4849
build:
4950
working_directory: ~/repo
@@ -81,6 +82,8 @@ jobs:
8182
- << parameters.os >>
8283
steps:
8384
- checkout
85+
- run: nvm install 12.22.7
86+
- run: nvm alias default 12.22.7
8487
- run: yarn config set workspaces-experimental true
8588
- run: yarn cache clean --force
8689
- run: yarn run production-build

packages/amplify-codegen-e2e-tests/CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,18 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6-
## [2.39.8-gqlv2-fix.0](https://github.com/aws-amplify/amplify-codegen/compare/[email protected]@2.39.8-gqlv2-fix.0) (2021-12-04)
6+
## [2.39.9](https://github.com/aws-amplify/amplify-codegen/compare/[email protected]@2.39.9) (2022-01-05)
7+
8+
9+
### Reverts
10+
11+
* Revert "build: update packages (#325)" (#343) ([694856a](https://github.com/aws-amplify/amplify-codegen/commit/694856a38513aacfa071a02090de8fdc7fc9a1fd)), closes [#325](https://github.com/aws-amplify/amplify-codegen/issues/325) [#343](https://github.com/aws-amplify/amplify-codegen/issues/343)
12+
13+
14+
15+
16+
17+
## [2.39.8](https://github.com/aws-amplify/amplify-codegen/compare/[email protected]@2.39.8) (2022-01-04)
718

819
**Note:** Version bump only for package amplify-codegen-e2e-tests
920

packages/amplify-codegen-e2e-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "amplify-codegen-e2e-tests",
3-
"version": "2.39.8-gqlv2-fix.0",
3+
"version": "2.39.9",
44
"description": "",
55
"repository": {
66
"type": "git",

packages/amplify-codegen/CHANGELOG.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,37 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6-
## [2.26.19-gqlv2-fix.3](https://github.com/aws-amplify/amplify-codegen/compare/[email protected].19-gqlv2-fix.2...[email protected].19-gqlv2-fix.3) (2021-12-21)
6+
## [2.26.22](https://github.com/aws-amplify/amplify-codegen/compare/[email protected].21...[email protected].22) (2022-01-05)
77

8-
**Note:** Version bump only for package amplify-codegen
98

9+
### Reverts
10+
11+
* Revert "fix(amplify-codegen): Add Amplify CLI version as a comment for the Modelgen output files (#133)" ([9d3c49f](https://github.com/aws-amplify/amplify-codegen/commit/9d3c49f028d1361e6601edc62265d978235802fd)), closes [#133](https://github.com/aws-amplify/amplify-codegen/issues/133)
1012

1113

1214

1315

14-
## [2.26.19-gqlv2-fix.2](https://github.com/aws-amplify/amplify-codegen/compare/[email protected]@2.26.19-gqlv2-fix.2) (2021-12-15)
1516

16-
**Note:** Version bump only for package amplify-codegen
17+
## [2.26.21](https://github.com/aws-amplify/amplify-codegen/compare/[email protected]@2.26.21) (2022-01-05)
18+
19+
20+
### Reverts
21+
22+
* Revert "build: update packages (#325)" (#343) ([694856a](https://github.com/aws-amplify/amplify-codegen/commit/694856a38513aacfa071a02090de8fdc7fc9a1fd)), closes [#325](https://github.com/aws-amplify/amplify-codegen/issues/325) [#343](https://github.com/aws-amplify/amplify-codegen/issues/343)
1723

1824

1925

2026

2127

22-
## [2.26.19-gqlv2-fix.1](https://github.com/aws-amplify/amplify-codegen/compare/[email protected]-gqlv2-fix.0...[email protected].19-gqlv2-fix.1) (2021-12-15)
28+
## [2.26.20](https://github.com/aws-amplify/amplify-codegen/compare/[email protected]...[email protected].20) (2022-01-04)
2329

2430
**Note:** Version bump only for package amplify-codegen
2531

2632

2733

2834

2935

30-
## [2.26.19-gqlv2-fix.0](https://github.com/aws-amplify/amplify-codegen/compare/[email protected]@2.26.19-gqlv2-fix.0) (2021-12-04)
36+
## [2.26.19](https://github.com/aws-amplify/amplify-codegen/compare/[email protected]@2.26.19) (2021-12-15)
3137

3238
**Note:** Version bump only for package amplify-codegen
3339

packages/amplify-codegen/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "amplify-codegen",
3-
"version": "2.26.19-gqlv2-fix.3",
3+
"version": "2.26.22",
44
"description": "amplify code generator",
55
"repository": {
66
"type": "git",
@@ -20,7 +20,7 @@
2020
"test-watch": "jest --watch"
2121
},
2222
"dependencies": {
23-
"@aws-amplify/appsync-modelgen-plugin": "1.29.10-gqlv2-fix.3",
23+
"@aws-amplify/appsync-modelgen-plugin": "1.29.12",
2424
"@aws-amplify/graphql-docs-generator": "2.4.2",
2525
"@aws-amplify/graphql-types-generator": "2.8.6",
2626
"@graphql-codegen/core": "1.8.3",

packages/appsync-modelgen-plugin/CHANGELOG.md

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,47 +3,31 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6-
## [1.29.10-gqlv2-fix.3](https://github.com/aws-amplify/amplify-codegen/compare/@aws-amplify/[email protected].10-gqlv2-fix.2...@aws-amplify/[email protected].10-gqlv2-fix.3) (2021-12-21)
6+
## [1.29.12](https://github.com/aws-amplify/amplify-codegen/compare/@aws-amplify/[email protected].11...@aws-amplify/[email protected].12) (2022-01-05)
77

88

9-
### Bug Fixes
10-
11-
* **appsync-modelgen-plugin:** associatedWith correctly points to model field rather than ID in bi-directional relations ([a39b61d](https://github.com/aws-amplify/amplify-codegen/commit/a39b61dec2d8adf3589212fe2aaf7400f98f01b9))
12-
* **appsync-modelgen-plugin:** revert [#326](https://github.com/aws-amplify/amplify-codegen/issues/326) ([d36323d](https://github.com/aws-amplify/amplify-codegen/commit/d36323d7f9adf92167bf9153c80435b42320053f))
13-
* **appsync-modelgen-plugin:** turn on the shouldUseModelNameFieldInHasManyAndBelongsTo flag for Android ([6cf1ebb](https://github.com/aws-amplify/amplify-codegen/commit/6cf1ebb31dbc28534525fcefc3be73c05596a41b))
14-
15-
16-
17-
18-
19-
## [1.29.10-gqlv2-fix.2](https://github.com/aws-amplify/amplify-codegen/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2021-12-15)
20-
21-
22-
### Bug Fixes
23-
24-
* change the if statement ([0b0b075](https://github.com/aws-amplify/amplify-codegen/commit/0b0b075a798aab63360ccd847e25d7989baa5522))
25-
9+
### Reverts
2610

11+
* Revert "build: update packages (#325)" (#343) ([694856a](https://github.com/aws-amplify/amplify-codegen/commit/694856a38513aacfa071a02090de8fdc7fc9a1fd)), closes [#325](https://github.com/aws-amplify/amplify-codegen/issues/325) [#343](https://github.com/aws-amplify/amplify-codegen/issues/343)
2712

2813

2914

30-
## [1.29.10-gqlv2-fix.1](https://github.com/aws-amplify/amplify-codegen/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2021-12-15)
3115

3216

33-
### Bug Fixes
17+
## [1.29.11](https://github.com/aws-amplify/amplify-codegen/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2022-01-04)
3418

35-
* set associatedWith to correct field with hasOne/hasMany and belongsTo ([289e38b](https://github.com/aws-amplify/amplify-codegen/commit/289e38ba4c6fd69616eb459c90e26467c6a1e314))
19+
**Note:** Version bump only for package @aws-amplify/appsync-modelgen-plugin
3620

3721

3822

3923

4024

41-
## [1.29.10-gqlv2-fix.0](https://github.com/aws-amplify/amplify-codegen/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]-gqlv2-fix.0) (2021-12-04)
25+
## [1.29.10](https://github.com/aws-amplify/amplify-codegen/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2021-12-15)
4226

4327

4428
### Bug Fixes
4529

46-
* partially rolling back commit 310 for flutter, swift, and java platforms ([#319](https://github.com/aws-amplify/amplify-codegen/issues/319)) ([6c2f0c8](https://github.com/aws-amplify/amplify-codegen/commit/6c2f0c8920e4347d59f345867778fd49579a2cd4))
30+
* **appsync-modelgen-plugin:** revert not removing the additional fields in join for many-to-many ([6bf2156](https://github.com/aws-amplify/amplify-codegen/commit/6bf215691d1fdcdc56be114958ecec4d1b1fc5f5))
4731

4832

4933

packages/appsync-modelgen-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aws-amplify/appsync-modelgen-plugin",
3-
"version": "1.29.10-gqlv2-fix.3",
3+
"version": "1.29.12",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/aws-amplify/amplify-codegen.git",

packages/appsync-modelgen-plugin/src/visitors/appsync-visitor.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,9 @@ export class AppSyncModelVisitor<
701701
isList: false,
702702
isNullable: field.isNullable,
703703
});
704+
} else if (connectionInfo.targetName !== 'id') {
705+
// Need to remove the field that is targetName
706+
removeFieldFromModel(model, connectionInfo.targetName);
704707
}
705708
field.connectionInfo = connectionInfo;
706709
}

0 commit comments

Comments
 (0)