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

Added --scope flag and scope config property #1939

Merged
merged 22 commits into from Mar 12, 2019
Merged

Added --scope flag and scope config property #1939

merged 22 commits into from Mar 12, 2019

Conversation

leo
Copy link
Contributor

@leo leo commented Mar 9, 2019

With this PR, we're replacing --team with a more straightforward --scope flag (since that name covers both user accounts and teams).

Furthermore, we're adding a scope property to now.json for the same purpose.

@AndyBitz AndyBitz self-requested a review March 12, 2019 20:46
@leo leo marked this pull request as ready for review March 12, 2019 21:01
@vercel vercel deleted a comment from codecov-io Mar 12, 2019
@codecov-io
Copy link

codecov-io commented Mar 12, 2019

Codecov Report

Merging #1939 into canary will decrease coverage by 0.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           canary   #1939      +/-   ##
=========================================
- Coverage    6.33%   6.31%   -0.02%     
=========================================
  Files          91      91              
  Lines        4074    4085      +11     
=========================================
  Hits          258     258              
- Misses       3816    3827      +11
Impacted Files Coverage Δ
src/commands/list.js 0% <ø> (ø) ⬆️
src/commands/secrets.js 0% <ø> (ø) ⬆️
src/commands/remove.js 0% <ø> (ø) ⬆️
src/commands/deploy/args.js 0% <ø> (ø) ⬆️
src/commands/certs/index.js 0% <ø> (ø) ⬆️
src/commands/projects.js 0% <ø> (ø) ⬆️
src/commands/scale.js 0% <ø> (ø) ⬆️
src/commands/logs.js 0% <ø> (ø) ⬆️
src/commands/alias/index.js 0% <ø> (ø) ⬆️
src/commands/upgrade.js 0% <ø> (ø) ⬆️
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7e15964...1e79211. Read the comment docs.

@leo leo merged commit 06a0607 into canary Mar 12, 2019
@leo leo deleted the scope branch March 12, 2019 23:09
leo added a commit that referenced this pull request Mar 14, 2019
* Added basics for new --scope flag

* Fixed usage information

* Fixed integration test

* Fixed usage information about whoami

* Brought back missing whitespace

* Do not push scope property to API

* Ensure we're only reading local config in one place

* Fixed build

* Added test

* Made scope from config work

* Correctly handle error

* Handle Now errors too when loading local config

* Removed NowError

* Revert "Removed NowError"

This reverts commit cfeebc6.

* Fixed CI

* Fixed final bug

* Do not consider switch command

* Made it work as expected

* Added test

* Added yet another test for the scope property

* Added space
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants