-
Notifications
You must be signed in to change notification settings - Fork 272
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
Add support to manage Teams in Projects #121
Conversation
cbdd6ad
to
8fd6bcf
Compare
ec3560d
to
f520c55
Compare
@xuzhang3 finally I found some time to finish up the PR. Ready for review |
There is an issue with the Therefore the pipeline is failing at an early state. I can reproduce the error locally. So I guess the repo is kinda broken. @xuzhang3 shouldn't we not pin the tools which got installed with |
Hi @tmeckel Fixed and merged, please update the latest code. |
@xuzhang3 will rebase the PR later today |
@xuzhang3 No worries! Thanks for having the issues sorted and fixed! 👍🏼 👍🏼 |
@xuzhang3 ping! 😀 |
Hi @tmeckel I will review this PR next week! |
…azuredevops_team_administrators and azuredevops_team
…issions/utils/namespaces.go
…redevops/internal/service/permissions/utils/namespaces_test.go
… empty or nil instead of returning an error in azuredevops/internal/service/permissions/utils/namespaces.go
…/core/resource_team.go
…issions/utils/namespaces.go
This error not always happen. A potential error is service returned the response as HTML(PAT expires or other errors), the client.UnmarshalCollectionJson cannot marshal the response object and return the parse error. An error example: func main() {
var responseValue []build.DefinitionResourceReference
err := json.Unmarshal([]byte("<html></html>"), &responseValue)
fmt.Println(err)
}
Result:
invalid character '<' looking for beginning of value |
Co-authored-by: xuzhang3 <[email protected]>
Co-authored-by: xuzhang3 <[email protected]>
Co-authored-by: xuzhang3 <[email protected]>
…ues are consistently available from the REST API after creation and updates
@xuzhang3 I overhauled the code a bit 😀 ready for next review! |
…n azuredevops/internal/service/core/resource_team.go
@xuzhang3 ping ❤️ |
@tmeckel can you help resolve the conflicting files: |
# Conflicts: # azuredevops/provider.go
LGTM |
All Submissions:
What about the current behavior has changed?
This pull request contains the following new resources:
azuredevops_team
- for managing a Teamazuredevops_team_members
- for managing members of a teamazuredevops_team_administrators
- for managing administrators of a teamThis pull request contains the following new data sources:
azuredevops_team
- to load information about a Team inside a Project in Azure DevOpsazuredevops_teams
- to load all Teams defined in a a Project in Azure DevOps or all (accessible) Teams of all (accessible) ProjectsDoes this introduce a change to
go.mod
,go.sum
orvendor/
?Does this introduce a breaking change?
Any relevant logs, error output, etc?
N/A
Other information
#343