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

Improve data sources experience in the provider #103

Open
zbuchheit opened this issue Jul 9, 2024 · 2 comments
Open

Improve data sources experience in the provider #103

zbuchheit opened this issue Jul 9, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@zbuchheit
Copy link

zbuchheit commented Jul 9, 2024

Is your feature request related to a problem? Please describe.
Currently doing a data source lookup is cumbersome. For example, if I want to look up meraki_networks_switch_access_policies the data source object responds with an object containing attributes .item and .items, with the actual data nested underneath these attributes. This structure introduces complexity and inefficiency in accessing the desired data.

Describe the solution you'd like
Alternatively, you could break data sources into two version. Such as meraki_networks_switch_access_policy and meraki_networks_switch_access_policy_list to accomplish a more ergonomic user experience. This would also prevent having to handle .item and .items and you could just expose the data without nesting.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@fmunozmiranda
Copy link
Collaborator

We will take it into account for a future version, thank you very much for the suggestion.

@zbuchheit
Copy link
Author

great! Thanks! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants