mulesoft-anypoint / terraform-provider-anypoint

The Anypoint Platform Terraform Provider
https://registry.terraform.io/providers/mulesoft-anypoint/anypoint/latest
MIT License
12 stars 6 forks source link

Bug: anypoint_connected_app doesn't leverage paging when looking for scopes #27

Closed drdamour closed 7 months ago

drdamour commented 8 months ago

during a refresh anypoint_connected_app starts thinking it needs to apply unecessary changes if you have more than 25 scopes assigned as this service in anypoint is paged with a default page size of 25.

it does return a total property in an effort to indicate if paging is necessary.

the backing services is described here https://anypoint.mulesoft.com/exchange/portals/anypoint-platform/f1e97bc6-315a-4490-82a7-23abe036327a.anypoint-platform/access-management-api/minor/1.0/console/method/%236292/

probably the easy fix is to change the provider to pass in a limit=500 query string parameter to make the need to page less likely

soufi commented 7 months ago

Hello, thank you for the pointers. I'm fixing the issues and enhancing the whole resource + adding data source to get all connected apps in a given organization. The fix will be release with the upcoming version v1.6.0

soufi commented 7 months ago

This issue was solved in the latest release v1.6.0 Closing this.