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

PoC: Add plan modifier to selected_fields #170

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alexambarch
Copy link

@alexambarch alexambarch commented Feb 5, 2025

Currently, if a stream in a connection has field paths defined whose ordering does not match exactly with the way it's retrieved from the API, it is reported as a "change" regardless of whether there were any actual changes.

This is a proof of concept to add a plan modifier on the selected_fields that sorts the field paths in the plan by length, smallest first. This is the ordering the plan seems to be getting compared against. From my local testing it appears to work to silence the spurious changes in the fields.

As a disclaimer: I don't develop providers and I'm aware that Speakeasy is the one that generates this provider, so I'm not expecting this to get merged.

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

Successfully merging this pull request may close these issues.

1 participant