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

New resource azuredevops_feed azuredevops_feed_permission Data source azuredevops_feed Basic Feed Management #1011

Merged
merged 39 commits into from
May 8, 2024

Conversation

SetsudanHana
Copy link
Contributor

@SetsudanHana SetsudanHana commented Mar 25, 2024

All Submissions:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • My code follows the code style of this project.
  • I ran lint checks locally prior to submission.
  • Have you checked to ensure there aren't other open PRs for the same update/change?

What about the current behavior has changed?

Issue Number:

Does this introduce a change to go.mod, go.sum or vendor/?

  • Yes
  • No

Does this introduce a breaking change?

  • Yes
  • No

Any relevant logs, error output, etc?

(If it’s long, please paste to https://ghostbin.com/ and insert the link here.)

Other information

@SetsudanHana
Copy link
Contributor Author

@microsoft-github-policy-service agree

@SetsudanHana SetsudanHana changed the title WIP: Feeds Basic Feed Management Mar 26, 2024
@SetsudanHana
Copy link
Contributor Author

Fixes #905
Fixes #50

@SetsudanHana
Copy link
Contributor Author

@xuzhang3 Kindly asking for review, thanks

@favoretti
Copy link
Contributor

@xuzhang3 ping here too please, much awaited functionality :)

azuredevops/internal/service/feed/data_feed.go Outdated Show resolved Hide resolved
azuredevops/internal/service/feed/data_feed.go Outdated Show resolved Hide resolved
azuredevops/internal/service/feed/data_feed.go Outdated Show resolved Hide resolved
azuredevops/internal/service/feed/resource_feed.go Outdated Show resolved Hide resolved
website/docs/r/feed.html.markdown Outdated Show resolved Hide resolved
website/docs/r/feed.html.markdown Outdated Show resolved Hide resolved
website/docs/r/feed.html.markdown Outdated Show resolved Hide resolved
website/docs/d/feed.html.markdown Outdated Show resolved Hide resolved
website/docs/d/feed.html.markdown Outdated Show resolved Hide resolved
@SetsudanHana
Copy link
Contributor Author

Hello, @xuzhang3, I will be adding another resource to this PR, because we found during testing the necessity of having the ability to grant permissions to the feed so I will introduce azuredevops_feed_permission for that purpose If it is fine with You

@SetsudanHana
Copy link
Contributor Author

Hello, @xuzhang3, I will be adding another resource to this PR, because we found during testing the necessity of having the ability to grant permissions to the feed so I will introduce azuredevops_feed_permission for that purpose If it is fine with You

It looks like it can not be a separate resource, given the current client only supports SetFeedPermissions and GetFeedPermissions so I will incorporate it within the azuredevops_feed resource

@xuzhang3
Copy link
Collaborator

@SetsudanHan you can create a new PR based on this PR or waiting this PR merged

@SetsudanHana
Copy link
Contributor Author

@SetsudanHan you can create a new PR based on this PR or waiting this PR merged

Well, ideally we need both at the same time, I think I figured out how the API works to implement it correctly, so I would prefer putting it in the same PR if it is fine with You

@xuzhang3
Copy link
Collaborator

@SetsudanHan you can create a new PR based on this PR or waiting this PR merged

Well, ideally we need both at the same time, I think I figured out how the API works to implement it correctly, so I would prefer putting it in the same PR if it is fine with You

It’s okay to put them together, but it’s recommended to separate into different PR.

@SetsudanHana
Copy link
Contributor Author

Hello @xuzhang3, so I have added the Feed Permission management, please review it when you have some time (AC, Units, and documentation added)

azuredevops/internal/service/feed/resource_feed.go Outdated Show resolved Hide resolved
azuredevops/internal/service/feed/resource_feed.go Outdated Show resolved Hide resolved
azuredevops/internal/service/feed/resource_feed.go Outdated Show resolved Hide resolved
azuredevops/internal/service/feed/resource_feed.go Outdated Show resolved Hide resolved
@xuzhang3
Copy link
Collaborator

xuzhang3 commented May 8, 2024

=== RUN   TestAccAzureDevOps_Resource_FeedPermission
=== PAUSE TestAccAzureDevOps_Resource_FeedPermission
=== RUN   TestAccAzureDevOps_Resource_Feed
=== PAUSE TestAccAzureDevOps_Resource_Feed
=== RUN   TestAccAzureDevOps_Resource_Feed_with_Project
=== PAUSE TestAccAzureDevOps_Resource_Feed_with_Project
=== RUN   TestAccAzureDevOps_Resource_Feed_Soft_Delete
--- PASS: TestAccAzureDevOps_Resource_Feed_Soft_Delete (22.54s)
=== CONT  TestAccAzureDevOps_Resource_FeedPermission
=== CONT  TestAccAzureDevOps_Resource_Feed_with_Project
=== CONT  TestAccAzureDevOps_Resource_Feed
--- PASS: TestAccAzureDevOps_Resource_Feed (4.28s)
--- PASS: TestAccAzureDevOps_Resource_Feed_with_Project (34.61s)
--- PASS: TestAccAzureDevOps_Resource_FeedPermission (49.62s)
PASS
ok      github.com/microsoft/terraform-provider-azuredevops/azuredevops/internal/acceptancetests        74.617s

=== RUN   TestAccAzureDevOps_DataSource_Feed_By_Name
=== PAUSE TestAccAzureDevOps_DataSource_Feed_By_Name
=== RUN   TestAccAzureDevOps_DataSource_Feed_By_Feed_Id
=== PAUSE TestAccAzureDevOps_DataSource_Feed_By_Feed_Id
=== CONT  TestAccAzureDevOps_DataSource_Feed_By_Name
=== CONT  TestAccAzureDevOps_DataSource_Feed_By_Feed_Id
--- PASS: TestAccAzureDevOps_DataSource_Feed_By_Name (15.73s)
--- PASS: TestAccAzureDevOps_DataSource_Feed_By_Feed_Id (16.79s)
PASS
ok      github.com/microsoft/terraform-provider-azuredevops/azuredevops/internal/acceptancetests        23.189s


@xuzhang3
Copy link
Collaborator

xuzhang3 commented May 8, 2024

@SetsudanHana LGTM

@xuzhang3 xuzhang3 merged commit 3504dec into microsoft:main May 8, 2024
1 check passed
@xuzhang3 xuzhang3 changed the title Basic Feed Management New resource azuredevops_feed azuredevops_feed_permission Data source azuredevops_feed Basic Feed Management Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants