Skip to content

Comments

[Fly] Single team scoped fly cmd#4406

Merged
jamieklassen merged 2 commits intomasterfrom
4196-single-team-scoped-fly-cmd
Feb 6, 2020
Merged

[Fly] Single team scoped fly cmd#4406
jamieklassen merged 2 commits intomasterfrom
4196-single-team-scoped-fly-cmd

Conversation

@zoetian
Copy link
Contributor

@zoetian zoetian commented Sep 10, 2019

Resolves part 1/2 to fixes #4196

As mentioned in the above issue, this PR is to address the single-team-scoped fly commands (i.e. scoped by pipeline/ resource/ build etc.)

    • hijack
    • trigger-job
    • pause-job
    • unpause-job
    • jobs

This PR is ready for review

We're going to continue implementing this type of change for the remaining commands (see #4196, the single-team commands section) in other PR's. For now, this can be reviewed/merged in.

@zoetian zoetian force-pushed the 4196-single-team-scoped-fly-cmd branch 9 times, most recently from 71dff27 to fad057c Compare September 13, 2019 23:51
@zoetian zoetian changed the title single team scoped fly cmd [Fly] Single team scoped fly cmd Sep 13, 2019
@zoetian zoetian force-pushed the 4196-single-team-scoped-fly-cmd branch 3 times, most recently from 726f94b to 8260e32 Compare September 16, 2019 04:52
@cirocosta
Copy link
Contributor

cirocosta commented Sep 16, 2019

Hey @zoetian ,

As with just these four commands, we're already crossing the 1500+ lines of code of change, wdyt of splitting the next commands on other PRs? I imagine that doing so would make it simpler for reviewers to reason about the more isolated changes, as well as giving you the opportunity to better scope the comments on the implementation of each 🤔

Thanks!

@cirocosta
Copy link
Contributor

[ipm]: there might be some opportunity here for refactoring the loginATCServer so that we can DRY.

@cirocosta
Copy link
Contributor

[ipm]: let's wrap this PR around just these commands that we added, and then take some time on thinking on how we could gain more velocity with some refactoring to the testing

@zoetian zoetian force-pushed the 4196-single-team-scoped-fly-cmd branch 12 times, most recently from 023b1db to cc6b74e Compare September 17, 2019 18:03
@zoetian zoetian marked this pull request as ready for review September 17, 2019 18:08
@zoetian zoetian force-pushed the 4196-single-team-scoped-fly-cmd branch 6 times, most recently from bccc869 to 5cb6ff4 Compare September 18, 2019 00:32
@taylorsilva taylorsilva force-pushed the 4196-single-team-scoped-fly-cmd branch 4 times, most recently from 34a7052 to f125c98 Compare September 30, 2019 18:55
@taylorsilva
Copy link
Member

taylorsilva commented Sep 30, 2019

@concourse/core-api This PR is ready for review please and thanks 😄

We're going to continue implementing this type of change for the remaining commands (see #4196, the single-team commands section) in other PR's. For now, this can be reviewed/merged in.

vito
vito previously requested changes Oct 10, 2019
@zoetian zoetian force-pushed the 4196-single-team-scoped-fly-cmd branch from a1b27b1 to 7fb32fa Compare October 21, 2019 13:48
@zoetian zoetian force-pushed the 4196-single-team-scoped-fly-cmd branch 2 times, most recently from f4e9936 to a2bc75e Compare October 31, 2019 02:05
@zoetian
Copy link
Contributor Author

zoetian commented Oct 31, 2019

@concourse/core-api Sorry about the super long delay, this PR is ready for another round of review now. Thanks!

@zoetian zoetian force-pushed the 4196-single-team-scoped-fly-cmd branch 3 times, most recently from 1e19d80 to 1bc9f97 Compare November 2, 2019 03:28
@xtremerui
Copy link
Contributor

@taylorsilva

…npause-job`

Signed-off-by: Zoe Tian <[email protected]>
Co-authored-by: Bin Ju <[email protected]>
Co-authored-by: Mike Hoskins <[email protected]>
Co-authored-by: Taylor Silva <[email protected]>
Co-authored-by: Bishoy Youssef <[email protected]>
@aoldershaw aoldershaw force-pushed the 4196-single-team-scoped-fly-cmd branch from 1bc9f97 to cb10a81 Compare February 5, 2020 18:53
@jamieklassen
Copy link
Member

We were playing around with this patch and noticed an unexpected behaviour:

$ fly -t dev pj -j doesnt/exist
error: doesnt/exist not found on team &{main %!s(*internal.connection=&{http://localhost:8080 0xc000273260 false 0xc0002732c0})}

Probably we'd rather see something more like

fly -t dev pj -j doesnt/exist
error: doesnt/exist not found on team main

* switch from `-n/--team-name` to `--team` for overriding the target-default team
* improve the help-text for `--team` flag
* fix the error message when a job is not found
* extract GetTeam helper and test it

Signed-off-by: Aidan Oldershaw <[email protected]>
Co-authored-by: Jamie Klassen <[email protected]>
@jamieklassen jamieklassen requested a review from vito February 5, 2020 21:07
Copy link
Member

@taylorsilva taylorsilva left a comment

Choose a reason for hiding this comment

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

LGTM

@jamieklassen jamieklassen dismissed vito’s stale review February 6, 2020 15:22

@taylorsilva re-reviewed, and the review was super old

@jamieklassen jamieklassen merged commit 510c3b5 into master Feb 6, 2020
@jamieklassen jamieklassen deleted the 4196-single-team-scoped-fly-cmd branch February 6, 2020 15:23
@clarafu clarafu added the release/documented Documentation and release notes have been updated. label Feb 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release/documented Documentation and release notes have been updated.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[fly] Add --team-name for all Fly commands

8 participants