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
Record preliminary context for Interactive Setup #9736
Record preliminary context for Interactive Setup #9736
Conversation
290324c
to
7b20014
Compare
Codecov Report
@@ Coverage Diff @@
## master #9736 +/- ##
=======================================
Coverage 86.09% 86.10%
=======================================
Files 327 328 +1
Lines 12579 12590 +11
=======================================
+ Hits 10830 10840 +10
- Misses 1749 1750 +1
Continue to review full report at Codecov.
|
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.
@pgrzesik that looks great. I've just proposed two naming improvements
lib/cli/interactive-setup/utils.js
Outdated
return { | ||
isInServiceContext: Boolean(serviceDir), | ||
isLoggedIn: isAuthenticated(), | ||
hasLocalCredentials: hasLocalCredentials(), |
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.
Let's maybe name it hasLocalAwsCredentials
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.
Agreed, it's much better name 👍
lib/cli/interactive-setup/utils.js
Outdated
resolvePreliminaryContext: ({ configuration, serviceDir }) => { | ||
return { | ||
isInServiceContext: Boolean(serviceDir), | ||
isLoggedIn: isAuthenticated(), |
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.
And here maybe isLoggedIntoDashboard
(as here we're not specifically in dashboard context, it might be valuable to indicate all dashboard specific properties with "dashboard" token)
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.
Good suggestion 👍
Thanks a lot for review, I'm also going to adjust the name of |
Great call! |
7b20014
to
4687e02
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.
Looks great 👍
Addresses: #9367