Move magician into tools#13939
Conversation
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR hasn't generated any diffs, but I'll let you know if a future commit does. |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR hasn't generated any diffs, but I'll let you know if a future commit does. |
|
@modular-magician reassign-reviewer |
|
Hello! I am a robot. Tests will require approval from a repository maintainer to run. Googlers: For automatic test runs see go/terraform-auto-test-runs. @ScottSuarez, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
|
@modular-magician reassign-reviewer |
ScottSuarez
left a comment
There was a problem hiding this comment.
Do we want to migrate membership checker to use this library so aren't duplicating code?
| } | ||
| } | ||
|
|
||
| func (gh *Client) GetUserType(user string) UserType { |
There was a problem hiding this comment.
undefined: ClientcompilerUndeclaredName
Should this define a client interface that has this function?
tools/github-membership/go.mod
Outdated
| @@ -0,0 +1,8 @@ | |||
| module github.com/trodge/magic-modules/membership-tools/tools/github-membership | |||
|
|
|||
| go 1.25 | |||
There was a problem hiding this comment.
| go 1.25 | |
| go 1.23 |
consistency with other packages
There was a problem hiding this comment.
Yes, but I want to copy it first so that importing is easier. |
|
It's now occurring to me that this approach won't work because I'll need to import the |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR hasn't generated any diffs, but I'll let you know if a future commit does. |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR hasn't generated any diffs, but I'll let you know if a future commit does. |
I'm not sure I understand the purpose of moving the code? We can just import it where it lives today, no? |
Packages from paths containing a leading . cannot be imported. https://pkg.go.dev/golang.org/x/mod/module#CheckImportPath |
I'm okay with this philosophically but would like Stephen to sign off as well just to make sure I'm not missing anything ! |
|
I'm initially hesitant to make this large of a change when the stated purpose is pretty narrow. It feels like we ought to be able to only move the membership code + client layer code, rather than needing to move everything. There's also a security question: if we're moving any code from .ci to tools, we should take a moment to consider whether we should automatically consider changes to tools unsafe, similar to .ci. That being said - checking membership is now significantly easier than it was previously so perhaps we don't need to share code with the GBA at all? |
|
As discussed - switching to a yaml file for membership / vacation data, will pull that into the GBA as needed. We'll implement the membership check in the GBA separately instead of sharing code. |
|
@ScottSuarez This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
|
@GoogleCloudPlatform/terraform-team @ScottSuarez This PR has been waiting for review for 1 week. Please take a look! Use the label |
This will allow membership data to be shared with the good build approver.
Commands used:
Release Note Template for Downstream PRs (will be copied)
See Write release notes for guidance.