Skip to content

PoC: Add plan modifier to selected_fields#170

Open
Alex Ambarchian (alexambarch) wants to merge 2 commits intoairbytehq:mainfrom
alexambarch:alexambarch/ensure-selected-fields-diff
Open

PoC: Add plan modifier to selected_fields#170
Alex Ambarchian (alexambarch) wants to merge 2 commits intoairbytehq:mainfrom
alexambarch:alexambarch/ensure-selected-fields-diff

Conversation

@alexambarch
Copy link
Copy Markdown
Contributor

@alexambarch Alex Ambarchian (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.

@devin-ai-integration devin-ai-integration Bot added the community PRs from community contributors label Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community PRs from community contributors

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant