Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

Adds the --s3-only quick deploy feature. #111

Merged
merged 6 commits into from
Oct 1, 2020

Conversation

mikegwhit
Copy link
Contributor

No description provided.

Copy link
Collaborator

@codeflyer codeflyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a not on the TS rules and it seem to miss the cloudfront invalidation action.

For the rest LGTM

.eslintrc.js Outdated
@@ -15,7 +15,7 @@ module.exports = {
],
rules: {
// Remove any type warnings.
'@typescript-eslint/no-explicit-any':['error',{
'@typescript-eslint/no-explicit-any':['off',{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A specific reason to set this value off?

Copy link
Contributor Author

@mikegwhit mikegwhit Sep 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This ended up being pretty difficult to work with so I flipped it off. In other words, as soon as we turn this on, we have to explicitly type everything. The unknown type does not work for object literals AFAIK. I guess it's worth discussion, but my rule of thumb is that any time you have a meta-structure like test mocks or in this case typing where you exceed maybe a 2:3 ratio of meta-structure to code, you hit diminishing returns. As it is with typing the CDK generated Cfn templates, I was having to type out these files. Could they exist as a type within CDK? Possibly. I think it weighs down our development agility at a time when it is still getting discussed that Mira's purpose is not immediately clear to new developers.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IDK what's the best approach. The any error was added with a specific task and if we remove it we'll have a regression.
Probably the best approach is to add some eslint-disable directive where the effort to add the types is useless and too expensive. In this way we can keep monitored what's not typed and avoid that parts that intstead requires a proper typing will be skipped.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@mikegwhit mikegwhit merged commit 972190c into master Oct 1, 2020
mikegwhit added a commit that referenced this pull request Oct 12, 2020
* 1.3.0 (#83)

* Changes to the contribution guide for the additional steps in the release process (#85)

* Small patch fixing windows (#94)

* Adds tsc fix for auto-delete-bucket.  Adds eslint ignore folders.  Adds one-line windows fix.

* Lints.

Co-authored-by: Mike Whit <mikegwhit@users.noreply.github.com>

* Feature/constructor types 89 (#90)

* feat(types): fix type on cicd  #89

* feat(types): fix type route53 manager  #89

* feat(types): fix type custom resources  #89

* feat(types): fix app.ts  #89

* feat(types): fix types on cdk root  #89

* Feature/types fix 90 (#93)

* feat(types): fix type on cicd  #89

* feat(types): fix type route53 manager  #89

* feat(types): fix type custom resources  #89

* feat(types): fix app.ts  #89

* feat(types): fix types on cdk root  #89

* feat(types): finalize typing

* Fixes tests on windows while preserving intent of tests. (#97)

* Fixes tests on windows while preserving intent of tests.

* lints

Co-authored-by: Mike Whit <mikegwhit@users.noreply.github.com>

* Bump node-fetch from 2.6.0 to 2.6.1 (#98)

Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/bitinn/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md)
- [Commits](node-fetch/node-fetch@v2.6.0...v2.6.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fix/local mira (#96)

* Adds tsc fix for auto-delete-bucket.  Adds eslint ignore folders.  Adds one-line windows fix.

* Lints.

* Adds --preserve-symlinks and a patch to run Mira from a local link context.

* Lint

* Adds the link script.  Patches simple fix for the bootstrap file.

* Adds link to ignored files.

* Lints the link file.

* lints

* lints and adds  the bin files.

* Adds documentation.

* Adds implementation details for Mira

* Adds try catch blocks around the symlinking steps.

Co-authored-by: Mike Whit <mikegwhit@users.noreply.github.com>

* Fix: set removal policy of CICD KMS key to destroy (#106)

* Set removal policy of CICD KMS key to destroy

* add note

* Fix/calleridentity fallback (#108)

* Handle iam.getUser error and fallback to sts

* Add test to fallback flow

* Adds the --s3-only quick deploy feature. (#111)

* Adds the --s3-only quick deploy feature.

* Adds docs.

* Adds in better messaging for the quick deploy

* lints and undos linter rule

* Readme updates

* Readme updates

Co-authored-by: Mike Whit <mail+git@mikewhit.com>

* Docs refactor (#115)

* Docs refactor
* Addressed feedback from Mike W

* feat(deploy): add --require-approval arg support, return error on fail (#117)

* fix domain support (#110)

* fix domain support

* add domain to available commands

* Update CDK version to 1.67.0 (#120)

* Feature/cfn sdk lookups (#112)

* Adds the --s3-only quick deploy feature.

* Adds docs.

* Adds in better messaging for the quick deploy

* lints and undos linter rule

* Readme updates

* Readme updates

* Adds CloudFormation SDK hookup.  Uses this to create info message when running quick deploy.

* addresses pr feedback

Co-authored-by: Mike Whit <mail+git@mikewhit.com>
Co-authored-by: Mike Whit <mikegwhit@users.noreply.github.com>

* 1.4.0 (#121)

* 1.3.0 (#83) (#84) (#123)

Co-authored-by: Mark Ireland <mark.ireland@nearform.com>
Co-authored-by: Mike Whit <mikegwhit@users.noreply.github.com>

Co-authored-by: Mark Ireland <mark.ireland@nearform.com>
Co-authored-by: Mike Whit <mikegwhit@users.noreply.github.com>
Co-authored-by: Davide Fiorello <davide@codeflyer.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Peter Balazs <frikille@gmail.com>
Co-authored-by: Mike Whit <mail+git@mikewhit.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants