Remove: machine_accounts feature flag.#5971
Conversation
Signed-off-by: Mujib Ahasan <ahasanmujib8@gmail.com>
|
The test failure appears to be valid: |
| return nil, util.UserVisibleError(codes.Unimplemented, "human users may only be added by invitation") | ||
| } | ||
| if isMachine && !flags.Bool(ctx, s.featureFlags, flags.MachineAccounts) { | ||
| if isMachine { |
There was a problem hiding this comment.
Ooh, this is tricky, since this is a negative use of the flag -- in this case, I think flags.Bool(ctx, s.featureFlags, flags.MachineAccounts) should effectively always return true, so if isMachine && !true will always evaluate to false, and the entire if false {...} block can be removed.
|
This PR needs additional information before we can continue. It is now marked as stale because it has been open for 30 days with no activity. Please provide the necessary details to continue or it will be closed in 30 days. |
|
I think the test failure here is clear and fairly simple (the wrong flag branch was removed). |
|
This PR needs additional information before we can continue. It is now marked as stale because it has been open for 30 days with no activity. Please provide the necessary details to continue or it will be closed in 30 days. |
|
With the merge of #6052, you may need to merge test changes, but based on the earlier comments, it seems like it should be straightforward to fix. |
Signed-off-by: Mujib Ahasan <ahasanmujib8@gmail.com>
|
Hello @evankanderson, I tried to fix the test cases. |
evankanderson
left a comment
There was a problem hiding this comment.
Thanks for doing (and updating) this! I think there's a little more removal that you can do, but the cleanup looks correct.
I suspect that the other PR may also be easier now that #6052 is in, but I wanted to get to this one first, because it looked a bit easier to resolve.
| Provider: &githubactions.GitHubActions{}, | ||
| }, | ||
| expectedError: "Description: Unimplemented\nDetails: machine accounts are not enabled", | ||
| }, |
There was a problem hiding this comment.
You can probably remove this entire test case, and remove the flagData from the next test case on line 808.
Signed-off-by: Mujib Ahasan <ahasanmujib8@gmail.com>
|
Thank you @evankanderson for suggestions, I have made the changes (suggested by you). |
Summary
The default value of
machine_accountsflag is false now. But related functionalities sets it to true. This PR is raised for the release of the flag.Fixes #5435