Skip to content
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

merge from remote #6

Merged
merged 837 commits into from
May 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
837 commits
Select commit Hold shift + click to select a range
ff70827
chore(release): Publish [ci skip]
Jan 31, 2022
657c344
fix: separate field level subscription errors and field level resolve…
danielleadams Feb 2, 2022
1239734
test: invoke deletion using the latest version (#9676)
ammarkarachi Feb 2, 2022
5ff6fe8
chore(release): Publish [ci skip]
Feb 3, 2022
5217f58
Fix add troubleshooting link (#9603)
sachscode Feb 3, 2022
14c56da
fix: fix modify gql schema base case; scope auth notif to v2 (#9689)
danielleadams Feb 3, 2022
db8c295
chore: consolidate dependencies, remove unused code (#9678)
jhockett Feb 3, 2022
bb36d01
chore: update templates to remove sensitive data (#9629)
danielleadams Feb 3, 2022
5b24455
feat: improve function templates; consolidate console.log, add jsdoc,…
josefaidt Feb 3, 2022
dc218d4
fix: allow pinpoint category removal after manual deletion (#9691)
johnpc Feb 3, 2022
f301220
test: print recorded screen frames when nextpect times out in E2E tes…
yuth Feb 3, 2022
c78d8c0
feat: update admin queries package dependencies, scripts (#9669)
josefaidt Feb 3, 2022
89b6925
chore: bump uuid versions in test packages (#9641)
jhockett Feb 3, 2022
388d014
fix: rest api policy size calculation (#9576)
Feb 3, 2022
7c816a3
chore(cli): remove enquirer direct dependency, extra import (#9662)
jhockett Feb 3, 2022
5b2d8c8
fix: do not update idp if credentials not present (#9454)
ammarkarachi Feb 3, 2022
bc57ed2
fix(cli): fix security enhancement notification for projects with sch…
lazpavel Feb 3, 2022
faf7dec
test: updated snapshot for functions_9 (#9704)
ammarkarachi Feb 4, 2022
5d053e1
test: fix failing AWSURL unit tests on Node 16 (#9706)
cjihrig Feb 4, 2022
42d7bca
chore: upgrade to amplify-codegen@2.28.0 (#9705)
dpilch Feb 4, 2022
4d3af32
fix(amplify-category-function): allow user to update function for 0 c…
danielleadams Feb 4, 2022
b55f36a
test: using the full message to match pattern for walkthrough (#9707)
ammarkarachi Feb 4, 2022
0ce0646
fix(searchable): unwrap _version field correctly when datastore is en…
sundersc Feb 4, 2022
acd995f
fix(graphql): allow iam private rule to access update mutation when a…
sundersc Feb 4, 2022
b791603
chore: fix versions to align with last beta release (#9716)
yuth Feb 8, 2022
13dfc69
chore(release): Publish [ci skip]
Feb 10, 2022
e0d4db1
docs: update custom policies documentation url (#9731)
flozender Feb 10, 2022
645dd3c
build(deps): bump simple-get from 3.1.0 to 3.1.1 (#9692)
dependabot[bot] Feb 10, 2022
7174033
build(deps): bump ini (#9619)
dependabot[bot] Feb 10, 2022
ed69290
build(deps): bump lodash (#9620)
dependabot[bot] Feb 10, 2022
97e01df
build(deps): bump y18n (#9618)
dependabot[bot] Feb 10, 2022
60fbc57
build(deps): bump normalize-url (#9616)
dependabot[bot] Feb 10, 2022
3e21411
build(deps): bump node-fetch from 2.6.6 to 2.6.7 (#9587)
dependabot[bot] Feb 10, 2022
4aa1d58
build(deps): bump markdown-it from 12.3.0 to 12.3.2 (#9509)
dependabot[bot] Feb 10, 2022
f2316bc
build(deps): bump follow-redirects from 1.14.6 to 1.14.7 (#9514)
dependabot[bot] Feb 10, 2022
9404a0c
build: add script to check if the versions are already published (#9734)
yuth Feb 10, 2022
943c7ed
feat(amplify-category-geo): add permissions for suggestions (#9743)
phani-srikar Feb 11, 2022
9bff4ae
fix: graphql-transformer-migrator add modelgen flag after v2 migrate …
marcvberg Feb 11, 2022
d061d92
chore: bump package versions with conflicting betas (#9639) (#9638)
lazpavel Feb 11, 2022
334f1a8
chore(version): bump up conflicting beta packages (#9760)
sundersc Feb 14, 2022
f1af5bb
build: fix version check script for beta release (#9758)
yuth Feb 14, 2022
4cf6274
chore(release): Publish [ci skip]
Feb 15, 2022
0c6508b
fix(graphql): handle sandbox pull with no environment info (#9776)
sundersc Feb 16, 2022
2bd4172
test(api): split api_5 test into two (#9782)
sundersc Feb 16, 2022
cc9d818
chore(release): Publish [ci skip]
Feb 18, 2022
31d32ba
[Fix] OpenSearch 7.10+ Removal of mapping types (#9265)
adilusman51 Feb 18, 2022
d75546c
fix(graphql): hasMany on model with (queries: null) generate correct …
sundersc Feb 18, 2022
c9504ef
ci: retry failed e2e test in ci (#9799)
yuth Feb 18, 2022
c061288
fix: add `context` to custom function handler entrypoint, ref #9563 (…
josefaidt Feb 18, 2022
1794cda
fix(graphql-auth-transformer): fix relational map key schema lookup w…
lazpavel Feb 18, 2022
5f3d787
test: add more schemas to schema library (#9730)
cjihrig Feb 18, 2022
44df217
fix: disallow lists in @primaryKey and @index fields (#9749)
cjihrig Feb 18, 2022
34da565
chore: bump various dependencies (#9797)
jhockett Feb 18, 2022
e135e42
fix: include default values in index arg validation (#9759)
cjihrig Feb 18, 2022
fcf9100
test(graphql): update snapshot for searchable index change (#9809)
sundersc Feb 18, 2022
da93791
test(api): update container flask requirements.txt (#9844)
sundersc Feb 24, 2022
44a9bea
fix(graphql-auth-transformer): update resolver should allow if update…
lazpavel Feb 24, 2022
b8028f6
chore(release): Publish [ci skip]
Feb 25, 2022
735854f
fix: set secretsPathAmplfiyAppId on initEnv when function has secrets…
edwardfoyle Feb 25, 2022
ee32733
fix: move searchable parameters to api stack V2 (#9840)
marcvberg Feb 25, 2022
39014c3
fix(graphql): add new open search instance types to the allowed list …
sundersc Feb 25, 2022
7a21360
docs: update discord community contributing channel, add link (#9820)
josefaidt Feb 25, 2022
84b61f8
fix: support Java numbers in appsync simulator (#9810)
cjihrig Feb 25, 2022
bc86974
change comments for environment in sample hooks script (#9801)
fossamagna Feb 25, 2022
c8d017f
chore: update troubleshooting message (#9793)
johnpc Feb 25, 2022
409c5dc
chore: add git secrets husky hook (#9792)
johnpc Feb 25, 2022
f8c9100
fix: map headless auth pw recovery to auto-verified attrs (#9786)
edwardfoyle Feb 25, 2022
cdb5aec
fix: get the defaultEditor value from the localEnvInfo context variab…
flozender Feb 25, 2022
9968452
fix: remove bot from cloud on 'amplify remove interaction' (#9660)
johnpc Feb 25, 2022
2d6209d
fix: move aws-sdk to dev dependency for node crud template, bump vers…
jhockett Feb 25, 2022
92061c3
chore: improve graphql syntax error message (#9353)
johnpc Feb 25, 2022
5238264
fix(cli): fix notification logic when API resource directory doesn't …
lazpavel Feb 25, 2022
c4b7487
fix: use existing rather than deleted models (#9769)
marcvberg Feb 25, 2022
950a688
chore: move unused jsonwebtoken to devDependencies (#9713)
panva Feb 25, 2022
b22b67d
fix(amplify-category-api): surface override build errors for REST API…
jhockett Feb 25, 2022
94547e0
Revert "fix: use existing rather than deleted models (#9769)" (#9884)
sachscode Mar 1, 2022
a385de9
fix: add HostedUIProvider dependency to OAuth Custom Lambda (#9878)
edwardfoyle Mar 2, 2022
d4218a9
Update ui builder dependencies (#9904)
johnpc Mar 4, 2022
46ada02
perf: remove ESM loader to speed up CLI execution (#9873)
jhockett Mar 4, 2022
3e64978
fix: uibuilder e2e tests (#9922)
johnpc Mar 7, 2022
3acdadb
build: ensure amplifyhosting-template.json is included in final bundl…
johnpc Mar 7, 2022
f0ddd2f
chore(release): Publish [ci skip]
Mar 7, 2022
969ac80
style: update lint rules and enforce on commit and PR checks (#9908)
edwardfoyle Mar 8, 2022
60e05f7
fix: improve error message on custom policies validation failure (#9862)
edwardfoyle Mar 8, 2022
389f551
fix: allow api updates without migration (#9864)
edwardfoyle Mar 8, 2022
9f3aa23
fix: fixes preSignup trigger naming (#9901)
akshbhu Mar 8, 2022
26bda52
build(deps): bump vm2 (#9909)
dependabot[bot] Mar 8, 2022
8483c79
fix: remove stray `undefined` message on `ctrl+c` (#9927)
flozender Mar 8, 2022
931b479
style: relax naming convention rules (#9943)
edwardfoyle Mar 9, 2022
4d4b390
style: relax lint rules, update dictionary (#9946)
jhockett Mar 9, 2022
436d53f
fix: split policies for both legacy and migrated REST APIs (#9572)
jhockett Mar 9, 2022
55be9c3
fix(amplify-category-api): remove stack trace from printout for api (…
marcvberg Mar 9, 2022
3d933ba
fix(amplify-category-function): show `console` in subcommand list (#9…
fossamagna Mar 9, 2022
a501976
build(deps): bump url-parse from 1.5.3 to 1.5.10 (#9867)
dependabot[bot] Mar 9, 2022
b276b2b
build(deps): bump follow-redirects from 1.14.7 to 1.14.9 (#9806)
dependabot[bot] Mar 9, 2022
6383260
fix(amplify-appsync-simulator): base-resolver for response and added …
pkubat Mar 9, 2022
1779fa0
fix(amplify-category-function): add length validation for secret valu…
SebasRod23 Mar 9, 2022
c7e7b90
fix(cli): spinner hiding prompt (#9875)
ammarkarachi Mar 9, 2022
b3fffc2
fix: enable 'listBucket' access to entire bucket for trigger lambda …
sachscode Mar 9, 2022
a9e6c14
ci: use large CCI hosts (#9929)
johnpc Mar 10, 2022
7264e27
fix: build resource when adding new env (#9847)
akshbhu Mar 10, 2022
bf9347d
test(amplify-appsync-simulator): update unit tests (#9949)
jhockett Mar 10, 2022
3df3af0
Revert "fix: build resource when adding new env (#9847)" (#9957)
danielleadams Mar 10, 2022
f4fca61
chore(release): Publish [ci skip]
Mar 14, 2022
e44ed18
fix(amplify-category-auth): expand @auth directive to explicit set of…
lazpavel Mar 14, 2022
d95de2a
test(graphql-auth-transformer): adds ACM tests (#9938)
lazpavel Mar 14, 2022
b92bf5d
style: tweak a few lint rules (#9995)
edwardfoyle Mar 15, 2022
d3a8060
Export AmplifyDependentResourceDefinition interface (#9715)
dannybpw Mar 15, 2022
15f5e55
fix: error message when auth is already imported (#9865)
jhockett Mar 15, 2022
75e548c
ci: add progress output to scan_artifacts to prevent timeouts (#9928)
johnpc Mar 15, 2022
8c858aa
chore: explicitly declare some dependencies we're pulling implicitly …
alharris-at Mar 15, 2022
96dd9cc
fix: remove undeclared reference on a type from amplify-provider-awsc…
alharris-at Mar 15, 2022
7130212
fix: use lib paths instead of src to reference submodule imports acro…
alharris-at Mar 15, 2022
dbf9cf5
fix: allow init with auth role name overrides (ref #9643) (#9688)
johnpc Mar 15, 2022
7f9f072
chore: bump codegen version (#10004)
marcvberg Mar 16, 2022
6f19f33
chore(release): Publish [ci skip]
Mar 17, 2022
66cdc06
fix: make amplify prompts dependency explicit, lint errors (#10007)
jhockett Mar 17, 2022
ded5e37
style: tweak more lint rules, addwords script, fix PR check (#10015)
edwardfoyle Mar 17, 2022
65666a2
Fix deployment state cleanup (#10013)
sachscode Mar 17, 2022
cd73fdd
fix(graphql): avoid static datastructures in gql transform (#10006)
sundersc Mar 18, 2022
f53596d
fix: build resource when adding new env (#10003)
akshbhu Mar 18, 2022
aaa3450
fix(test): check aws-exports on sandbox pull (#9959)
sundersc Mar 18, 2022
93ebf35
fix(graphql): include sort key(s) in many to many directive relation …
sundersc Mar 18, 2022
6357706
feat(amplify-cli-core): Allow cloudformation functions (e.g. Fn::Sub,…
juniarz Mar 18, 2022
6f27cc9
test(graphql): update many to many snapshot (#10023)
sundersc Mar 21, 2022
37253b2
Revert "fix: build resource when adding new env (#10003)" (#10037)
jhockett Mar 21, 2022
adecb03
chore: sync yarn.lock file (#10021)
jhockett Mar 22, 2022
bc40df8
chore(release): Publish [ci skip]
Mar 23, 2022
4df1c8f
chore: remove workflow actions (#10055)
siegerts Mar 23, 2022
2f2229c
build(deps): bump minimist (#10057)
dependabot[bot] Mar 23, 2022
64ba2f1
fix(container-api): upgrade flask version for the python api (#10077)
sundersc Mar 28, 2022
94398f8
fix(graphql): avoid duplicate function when overriding resolvers (#9980)
sundersc Mar 28, 2022
dfcfa52
fix(graphql): correct searchable instance types (#9973)
sundersc Mar 30, 2022
9fe0405
feat: add latency metrics to usage data payload (#10016)
edwardfoyle Mar 31, 2022
6be927e
auth transformer changes for linting (#10109)
danielleadams Mar 31, 2022
f634754
BREAKING CHANGE!: install pkg cli from npm (#10042)
johnpc Mar 31, 2022
5c0e290
fix: use prompter and handle deletions (#10122)
johnpc Apr 4, 2022
f04af99
ci: add arm64 linux deployment (#10134)
johnpc Apr 5, 2022
624eebd
ci: use x64 names for win and macos (#10136)
johnpc Apr 5, 2022
d7c6ba6
chore: prevent cold start by warming binary immediately after install…
johnpc Apr 6, 2022
ea87a22
ci: use legacy binary names for github releases (#10144)
johnpc Apr 6, 2022
0b2f11b
ci: use renamed files in tarballs (#10150)
johnpc Apr 7, 2022
d93ef3e
ci: upload prod binaries on release branch (#10151)
johnpc Apr 7, 2022
159f1a0
chore(release): Publish [ci skip] (#10154)
johnpc Apr 7, 2022
d37a384
chore(release): Publish [ci skip] (#10157)
johnpc Apr 7, 2022
42edc57
fix: api sets auth dependency correctly in meta files (#10072)
edwardfoyle Apr 7, 2022
4a08ff5
fix: build resource when adding new env (#10058)
akshbhu Apr 7, 2022
489b2ca
chore: add linting changes to test files (#10155)
danielleadams Apr 7, 2022
6259ef7
Fix feature flag linting (#10137)
danielleadams Apr 7, 2022
93eddc5
fix: deploy only function when doing amplify push function (#10035)
akshbhu Apr 7, 2022
0f984cc
chore: ensure cli stays in sync with internal cli version (#10159)
johnpc Apr 8, 2022
1663c8d
feat(amplify-category-geo): add geo category workflows for maps and s…
phani-srikar Apr 8, 2022
49ab9d8
chore: pin latest studio codegen dependency (#9942)
johnpc Apr 8, 2022
0246c80
build(deps): bump ansi-regex (#10088)
dependabot[bot] Apr 8, 2022
eaba903
build(deps): bump plist from 3.0.4 to 3.0.5 (#10089)
dependabot[bot] Apr 8, 2022
989d5b4
chore: bump resolved simple-plist version in yarn.lock (#10170)
jhockett Apr 8, 2022
30f07d2
ci: remove pipeline cruft (#10171)
johnpc Apr 8, 2022
9ea6704
chore: update minimist and node-fetch, correct lerna.json (#10174)
jhockett Apr 8, 2022
7f39ad8
build(deps): bump moment from 2.29.1 to 2.29.2 (#10175)
dependabot[bot] Apr 8, 2022
7d376e8
test: fix failing geo tests (#10179)
johnpc Apr 11, 2022
88ab202
chore(release): Publish [ci skip]
Apr 11, 2022
2145001
fix(amplify-category-custom): validate that the project has been init…
SebasRod23 Apr 11, 2022
5f213e0
fix(cli): Fix typo in description for upgrade command (#10182)
elisno Apr 11, 2022
0a531ef
fix: bump moment-timezone, and remove deprecated types dep (#10177)
alharris-at Apr 11, 2022
846048c
fix: use EOL instead of \n when reading aws-exports (#10147)
edwardfoyle Apr 11, 2022
1bd548a
chore: fix nohoist of amplify-codegen (#10132)
johnpc Apr 11, 2022
fb1d0f6
chore: add linter ignore rule and dictionary entries (#10022)
jhockett Apr 11, 2022
85b3938
docs: ✏️ Provide useful default event structure for APIG fns (#9965)
tjmcewan Apr 11, 2022
f2ac2b2
fix: improve instanceof checks to support custom transformers (#10188)
johnpc Apr 11, 2022
16590f2
chore: add data gql cohort to codeowners for packages to move (#10191)
alharris-at Apr 12, 2022
1e9d140
fix(graphql-model-transformer): fix create mutation when index field …
lazpavel Apr 12, 2022
53bef2e
fix(graphql-model-transformer): fix enum filter input when queries ar…
lazpavel Apr 12, 2022
085f1ac
chore: add pagination for export Component&Theme and centralize getUi…
SwaySway Apr 12, 2022
60bfc43
chore: update commit related dependencies, update CONTRIBUTING.md (#1…
jhockett Apr 13, 2022
fc4b58b
chore: fix syntax error in .eslintrc.js (#10202)
fossamagna Apr 13, 2022
22386de
refactor: use a prefix matching for the claim in subscriptions (#10199)
danielleadams Apr 13, 2022
d7983f4
feat: add handling of colon-delimited identity claims to query (#10189)
danielleadams Apr 13, 2022
9251c3a
update uibuilder pkg dependencies (#10208)
SwaySway Apr 13, 2022
40871e8
chore(amplify-app): reverts #10147 (#10209)
lazpavel Apr 14, 2022
9cb1be0
test: update component in uibuilder e2e (#10210)
SwaySway Apr 14, 2022
9f13064
Revert "feat: add handling of colon-delimited identity claims to quer…
danielleadams Apr 14, 2022
e20ccc4
ci: upload gzipped pkg binaries (#10186)
johnpc Apr 15, 2022
11cc31a
chore: fix upload pkg script (#10219)
lazpavel Apr 15, 2022
25b3079
chore: use -x64 suffix for binaries (#10223)
johnpc Apr 15, 2022
eceab8d
fix: remove accidental space from amplify path (#10224)
johnpc Apr 15, 2022
a253c70
fix: amplify meta file resolution, update yarn.lock (#10225)
jhockett Apr 15, 2022
17b5df0
fix: accidental changes to meta file reading and resource status filt…
jhockett Apr 15, 2022
d755036
chore(release): Publish [ci skip]
Apr 18, 2022
5176dba
fix: show mfa prompt (#9954)
johnpc Apr 18, 2022
621ffa1
fix: use confirmContinue instead of yesOrNo behavior in conversion fr…
johnpc Apr 18, 2022
9977568
ci: reduce integration-test pipeline step flakiness (#10218)
johnpc Apr 18, 2022
0aa5009
chore: fix amplify uninstall command (#10232)
johnpc Apr 18, 2022
d0a1da3
chore: remove unnecessary travis.yml (#10240)
johnpc Apr 18, 2022
56b8d93
fix: prevent crash when xdg-open is not available (#10233)
johnpc Apr 18, 2022
0e6a99a
fix(amplify-category-auth,amplify-category-geo): update backend-confi…
lazpavel Apr 19, 2022
e95fc80
fix(graphql): upgrade searchable streaming lambda python version (#10…
sundersc Apr 19, 2022
754ae44
fix: validate the presence of sortKeyFields when index is on the same…
flozender Apr 19, 2022
0dea4ed
chore: bump aws-sdk version (#10255)
johnpc Apr 20, 2022
3e276d1
fix: remove prompt from rds headless pull (#10239)
johnpc Apr 20, 2022
c8a02c3
build(deps): bump async (#10204)
dependabot[bot] Apr 21, 2022
8314372
fix(amplify-util-mock): Change exposed attr to reference correct attr…
loganhersh Apr 21, 2022
5c53683
fix: add missing property layer version logical id to layer cloud sta…
winstonwp Apr 21, 2022
5d862a4
chore: add script to handle merge conflicts in eslint dictionary (#10…
jhockett Apr 21, 2022
edc3c2c
test(amplify-e2e-tests): re-enable uibuilder react test (#10229)
SwaySway Apr 21, 2022
fe73fa4
chore(amplify-graphiql-explorer): upgrade react-scripts (#10228)
johnpc Apr 21, 2022
a59b89e
chore: use jest 26 (#10267)
johnpc Apr 22, 2022
eff77da
Revert "refactor: use a prefix matching for the claim in subscription…
danielleadams Apr 22, 2022
33d8a8f
fix: removed unsupported portfinder (#10269)
ammarkarachi Apr 22, 2022
9541aa5
fix: remove unsupported cfn-lint (#10270)
ammarkarachi Apr 22, 2022
49b35b0
chore: update nth-check (#10271)
johnpc Apr 22, 2022
1143117
chore: update glob-parent (#10274)
johnpc Apr 22, 2022
cefa1b6
chore: upgrade async (#10275)
johnpc Apr 22, 2022
b156327
fix: update s3 bucket policies to adhere to best practices (#10272)
edwardfoyle Apr 22, 2022
f27d56a
fix: block prompts if shell is not a tty (#10276)
edwardfoyle Apr 23, 2022
0909769
Revert "fix: update s3 bucket policies to adhere to best practices (#…
ammarkarachi Apr 24, 2022
fd2e4ff
Add feature flag and resolver helpers for identity claim changes (#10…
danielleadams Apr 25, 2022
7d724ad
chore(release): Publish [ci skip]
Apr 27, 2022
5483d68
chore: revert to caret version of codegen dependencies after mv bump …
alharris-at Apr 27, 2022
d9d7086
chore: alias appsync provider methods, and rename to graphql (#10247)
alharris-at Apr 27, 2022
c1876d8
chore: separate graphql-transformer and resource-mangers for future r…
alharris-at Apr 27, 2022
8ac54a2
fix: remove exclusion of build directory on appsync upload (#10248)
danielleadams Apr 27, 2022
c3dae2d
feat: support search with colon delimited claim (#10257)
danielleadams Apr 27, 2022
baf9908
feat: matches identity claim for subscription (revert) (#10277)
danielleadams Apr 27, 2022
f5d7620
feat: add handling of colon-delimited identity claims to query (rever…
danielleadams Apr 28, 2022
ee24f6c
test: e2e tests to check that libraries can query new identity claim …
danielleadams Apr 28, 2022
947aae6
feat: use sub:username identity claim by default when persisting behi…
danielleadams Apr 28, 2022
3cc7e76
fix: explicitly assign buffer to global.buffer (#10308)
sachscode Apr 28, 2022
1a5607c
feat: dedup appsync functions (#10289)
akshbhu Apr 28, 2022
83c281a
feat: flip identity claim feature flag (#10311)
danielleadams Apr 28, 2022
1854235
Revert "fix: explicitly assign buffer to global.buffer (#10308)" (#10…
lazpavel Apr 28, 2022
0255737
chore: Revert "fix: remove exclusion of build directory on appsync up…
lazpavel Apr 29, 2022
ac593e9
test: update snapshot for api 2 test with identity claim changes (#10…
danielleadams Apr 29, 2022
9a13376
chore(release): Publish [ci skip]
Apr 29, 2022
284dd78
API Category Split Milestone 1 Changes in CLI (#10323)
alharris-at May 2, 2022
319b5e5
fix: add missing dev dependencies for eslint (#10334)
jhockett May 2, 2022
7b44226
fix: update file that was missed in migration, since it references je…
alharris-at May 3, 2022
9cab633
chore: update yarn.lock to resolve to the same version of ejs (#10313)
jhockett May 3, 2022
18d4eec
chore: Update codeowners as part of CLI split (#10333)
alharris-at May 3, 2022
2af11f4
fix: prevent symlinks on nodejs package install (#10293)
jhockett May 4, 2022
811f257
fix(amplify-provider-awscloudformation): use the right profile with S…
johnf May 4, 2022
4050cfc
fix(amplify-category-analytics): ensure pinpoint permissions are crea…
johnf May 4, 2022
5f63b33
fix: windows unit test for missing path assertion (#10294)
sachscode May 4, 2022
80a8ec3
chore: upgrade node12.x to node14.x (#10291)
johnpc May 4, 2022
971d517
chore: enable cron for full test suite (#10363)
danielleadams May 4, 2022
08fb69f
fix: root path handling for REST APIs (#9842)
jhockett May 4, 2022
6669996
fix: validate that the app limit has not been reached (issue #10063)…
SebasRod23 May 5, 2022
ce7f3e3
chore: initially tease transformer-factory out from transformGraphQLS…
alharris-at May 5, 2022
3951df7
chore: remove the nightly workflow from build/test/deploy and add its…
danielleadams May 5, 2022
da391b1
feat: usage flow logging for interactive and non-interactive cli comm…
sachscode May 5, 2022
c728f51
fix: npm package version bump (#10374)
akshbhu May 6, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
379 changes: 196 additions & 183 deletions .circleci/config.base.yml

Large diffs are not rendered by default.

16,314 changes: 79 additions & 16,235 deletions .circleci/config.yml

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions .circleci/enable_api.exp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/expect
spawn ./.circleci/api.sh
expect "Please select from one of the below mentioned services:\r"
expect "Select from one of the below mentioned services:\r"
send -- "\033\[B\r"
expect "Provide a friendly name for your resource to be used as a label for this category in the project:"
send -- "myAPI\r"
Expand All @@ -13,20 +13,20 @@ send -- "\r"
expect "Choose the function runtime that you want to use:"
send -- "\r"
expect "Choose the function template that you want to use:"
send -- "k\r"
send -- "1\r"
expect "Choose a DynamoDB data source option"
send -- "j\r"
expect "Please provide a friendly name for your resource that will be used to label this category in the project:"
expect "Provide a friendly name"
send -- "\r"
expect "Please provide table name:"
expect "Provide table name"
send -- "\r"
expect "What would you like to name this column:"
expect "What would you like to name this column"
send -- "itemNo\r"
expect "Please choose the data type:"
send -- "j\r"
expect "Choose the data type"
send -- "number\r"
expect "Would you like to add another column?"
send -- "n\r"
expect "Please choose partition key for the table:"
expect "Choose partition key for the table"
send -- "\r"
expect "Do you want to add a sort key to your table?"
send -- "n\r"
Expand All @@ -39,9 +39,9 @@ send -- "n\r"
expect "Do you want to edit the local lambda function now?"
send -- "n\r"
expect "Restrict API access"
send -- "n\r"
send -- "n"
expect "Do you want to add another path?"
send -- "N\r"
send -- "n"
set timeout 70
expect "Are you sure you want to continue?\r"
send -- "Y\r"
Expand Down
10 changes: 5 additions & 5 deletions .circleci/enable_auth.exp
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/usr/bin/expect
spawn ./.circleci/auth.sh
expect "Do you want to use default authentication and security configuration?\r"
send -- "\r"
expect "How do you want users to be able to sign in when using your Cognito User Pool?\r"
expect "Do you want to use the default authentication and security configuration?"
send -- "\r"
expect "Do you want to configure advanced settings?\r"
expect "How do you want users to be able to sign in?"
send -- "\r"
expect "Do you want to configure advanced settings?"
send -- "N\r"
set timeout 70
expect "Are you sure you want to continue?\r"
expect "Are you sure you want to continue?"
send -- "Y\r"
interact
12 changes: 12 additions & 0 deletions .circleci/lint_pr.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
set -xeo pipefail
# extract the PR number from the PR link
PR_NUM=${CIRCLE_PULL_REQUEST##*/}

if [ -z "$PR_NUM" ]; then
echo "Could not determine PR number. Cannot determine fork point for linting. Skipping linting."
exit
fi

# get PR file list, filter out removed files, filter only JS/TS files, then pass to the linter
curl -fsSL https://api.github.com/repos/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PR_REPONAME/pulls/$PR_NUM/files | jq -r '.[] | select(.status!="removed") | .filename' | grep -E '\.(js|jsx|ts|tsx)$' || true | xargs yarn eslint
set +x
105 changes: 97 additions & 8 deletions .circleci/local_publish_helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,93 @@ function startLocalRegistry {
grep -q 'http address' <(tail -f $tmp_registry_log)
}

function loginToLocalRegistry {
# Login so we can publish packages
(cd && npx npm-auth-to-token@1.0.0 -u user -p password -e user@example.com -r "$custom_registry_url")
function setNpmTag {
if [ -z $NPM_TAG ]; then
if [[ "$CIRCLE_BRANCH" =~ ^tagged-release ]]; then
if [[ "$CIRCLE_BRANCH" =~ ^tagged-release-without-e2e-tests\/.* ]]; then
export NPM_TAG="${CIRCLE_BRANCH/tagged-release-without-e2e-tests\//}"
elif [[ "$CIRCLE_BRANCH" =~ ^tagged-release\/.* ]]; then
export NPM_TAG="${CIRCLE_BRANCH/tagged-release\//}"
fi
fi
if [[ "$CIRCLE_BRANCH" == "beta" ]]; then
export NPM_TAG="beta"
fi
else
echo "NPM tag was already set!"
fi
echo $NPM_TAG
}

function uploadPkgCli {
aws configure --profile=s3-uploader set aws_access_key_id $S3_ACCESS_KEY
aws configure --profile=s3-uploader set aws_secret_access_key $S3_SECRET_ACCESS_KEY
aws configure --profile=s3-uploader set aws_session_token $S3_AWS_SESSION_TOKEN
cd out/
export hash=$(git rev-parse HEAD | cut -c 1-12)
export version=$(./amplify-pkg-linux-x64 --version)

if [[ "$CIRCLE_BRANCH" == "release" ]] || [[ "$CIRCLE_BRANCH" == "beta" ]] || [[ "$CIRCLE_BRANCH" =~ ^tagged-release ]]; then
tar -czvf amplify-pkg-linux-arm64.tgz amplify-pkg-linux-arm64
tar -czvf amplify-pkg-linux-x64.tgz amplify-pkg-linux-x64
tar -czvf amplify-pkg-macos-x64.tgz amplify-pkg-macos-x64
tar -czvf amplify-pkg-win-x64.tgz amplify-pkg-win-x64.exe

aws --profile=s3-uploader s3 cp amplify-pkg-win-x64.tgz s3://aws-amplify-cli-do-not-delete/$(echo $version)/amplify-pkg-win-x64-$(echo $hash).tgz
aws --profile=s3-uploader s3 cp amplify-pkg-macos-x64.tgz s3://aws-amplify-cli-do-not-delete/$(echo $version)/amplify-pkg-macos-x64-$(echo $hash).tgz
aws --profile=s3-uploader s3 cp amplify-pkg-linux-arm64.tgz s3://aws-amplify-cli-do-not-delete/$(echo $version)/amplify-pkg-linux-arm64-$(echo $hash).tgz
aws --profile=s3-uploader s3 cp amplify-pkg-linux-x64.tgz s3://aws-amplify-cli-do-not-delete/$(echo $version)/amplify-pkg-linux-x64-$(echo $hash).tgz

if [ "0" -ne "$(aws s3 ls s3://aws-amplify-cli-do-not-delete/$(echo $version)/amplify-pkg-linux-x64 | egrep -v "amplify-pkg-linux-x64-.*" | wc -l)" ]; then
echo "Cannot overwrite existing file at s3://aws-amplify-cli-do-not-delete/$(echo $version)/amplify-pkg-linux-x64.tgz"
exit 1
fi

aws --profile=s3-uploader s3 cp amplify-pkg-win-x64.tgz s3://aws-amplify-cli-do-not-delete/$(echo $version)/amplify-pkg-win-x64.tgz
aws --profile=s3-uploader s3 cp amplify-pkg-macos-x64.tgz s3://aws-amplify-cli-do-not-delete/$(echo $version)/amplify-pkg-macos-x64.tgz
aws --profile=s3-uploader s3 cp amplify-pkg-linux-arm64.tgz s3://aws-amplify-cli-do-not-delete/$(echo $version)/amplify-pkg-linux-arm64.tgz
aws --profile=s3-uploader s3 cp amplify-pkg-linux-x64.tgz s3://aws-amplify-cli-do-not-delete/$(echo $version)/amplify-pkg-linux-x64.tgz

else
tar -czvf amplify-pkg-linux-x64.tgz amplify-pkg-linux-x64
aws --profile=s3-uploader s3 cp amplify-pkg-linux-x64.tgz s3://aws-amplify-cli-do-not-delete/$(echo $version)/amplify-pkg-linux-x64-$(echo $hash).tgz
fi

cd ..
}

function generatePkgCli {
cd pkg

# install package depedencies
cp ../yarn.lock ./
yarn --production

# Optimize package size
yarn rimraf **/*.d.ts **/*.js.map **/*.d.ts.map **/README.md **/readme.md **/Readme.md **/CHANGELOG.md **/changelog.md **/Changelog.md **/HISTORY.md **/history.md **/History.md

# Restore .d.ts files required by @aws-amplify/codegen-ui at runtime
cp ../node_modules/typescript/lib/*.d.ts node_modules/typescript/lib/

# Transpile code for packaging
npx babel node_modules --extensions '.js,.jsx,.es6,.es,.ts' --copy-files --include-dotfiles -d ../build/node_modules

# Include third party licenses
cp ../Third_Party_Licenses.txt ../build/node_modules

# Build pkg cli
cp package.json ../build/node_modules/package.json
if [[ "$CIRCLE_BRANCH" == "release" ]] || [[ "$CIRCLE_BRANCH" == "beta" ]] || [[ "$CIRCLE_BRANCH" =~ ^tagged-release ]]; then
npx pkg -t node14-macos-x64,node14-linux-x64,node14-linux-arm64,node14-win-x64 ../build/node_modules --out-path ../out
else
npx pkg -t node14-linux-x64,node14-win-x64 ../build/node_modules --out-path ../out
mv ../out/amplify-pkg-linux ../out/amplify-pkg-linux-x64
mv ../out/amplify-pkg-win.exe ../out/amplify-pkg-win-x64.exe
fi


cd ..
}
function unsetNpmRegistryUrl {
# Restore the original NPM and Yarn registry URLs
npm set registry "https://registry.npmjs.org/"
Expand Down Expand Up @@ -76,6 +158,8 @@ function retry {
SLEEP_DURATION=5
FIRST_RUN=true
n=0
FAILED_TEST_REGEX_FILE="./amplify-e2e-reports/amplify-e2e-failed-test.txt"
rm -f $FAILED_TEST_REGEX_FILE
until [ $n -ge $MAX_ATTEMPTS ]
do
echo "Attempting $@ with max retries $MAX_ATTEMPTS"
Expand Down Expand Up @@ -134,15 +218,20 @@ function setAwsAccountCredentials {
}

function runE2eTest {
FAILED_TEST_REGEX_FILE="./amplify-e2e-reports/amplify-e2e-failed-test.txt"

if [ -z "$FIRST_RUN" ] || [ "$FIRST_RUN" == "true" ]; then
startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml"
setNpmRegistryUrlToLocal
changeNpmGlobalPath
npm install -g @aws-amplify/cli
npm install -g amplify-app
amplify -v
amplify-app --version
cd $(pwd)/packages/amplify-e2e-tests
fi
yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE

if [ -f $FAILED_TEST_REGEX_FILE ]; then
# read the content of failed tests
failedTests=$(<$FAILED_TEST_REGEX_FILE)
yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE -t "$failedTests"
else
yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE
fi
}
122 changes: 122 additions & 0 deletions .eslint-dictionary.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
[
"amazonaws",
"apigw",
"appsync",
"archiver",
"argv",
"arn",
"arns",
"authorizer",
"awscloudformation",
"axios",
"backend",
"bitwise",
"bool",
"callout",
"circleci",
"cloudformation",
"cloudfront",
"codegen",
"cognito",
"cors",
"creds",
"datasource",
"decrypt",
"dict",
"dotenv",
"durations",
"dynamodb",
"elasticsearch",
"enum",
"execa",
"extensibility",
"extentions",
"facebook",
"foreach",
"formatter",
"frontend",
"func",
"generatable",
"globals",
"gmail",
"graphql",
"gunzip",
"homedir",
"iam",
"igrantable",
"indicies",
"integtestFn",
"iops",
"iteratively",
"javascript",
"jsdoc",
"keyless",
"lerna",
"linux",
"lockfile",
"lstat",
"macos",
"mfas",
"minify",
"modelfieldmapimpl",
"modelgen",
"mtime",
"nock",
"nodejs",
"nodejs12",
"nodejs14",
"nullability",
"nullable",
"oauth",
"oidc",
"openid",
"opensearch",
"parens",
"pathname",
"pipelined",
"positionally",
"postauthorcd",
"promisify",
"qref",
"readdir",
"readme",
"readonly",
"rekognition",
"reqheaders",
"resolvers",
"rimraf",
"schemadeployer",
"schemas",
"searchable",
"serializable",
"serverless",
"signup",
"startable",
"stderr",
"stdin",
"stdout",
"sumerian",
"tablename",
"testother",
"testschemadeployer",
"textract",
"timestamps",
"totp",
"tsconfig",
"typename",
"uibuilder",
"uint",
"unauth",
"updateamplify",
"userpool",
"userposts",
"utf",
"utils",
"versioned",
"vscode",
"writeable",
"xamznone",
"xcode",
"yaml",
"yyyymmddhhmmss"
]
Loading