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

🐛 Source Outreach: remove stream_state interpolation #55180

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kyleromines
Copy link
Contributor

@kyleromines kyleromines commented Mar 3, 2025

What

In version 1.0.30 and before cursor_field is set to "updatedAt"
After 1.1.0 cursor_field is being set to InterpolatedString(string='updatedAt', default='updatedAt') causing this error when running a check: Unable to connect to stream accounts - unhashable type: 'InterpolatedString'

How

Pull string property from InterpolatedString class

Review guide

  1. components.py

User Impact

Currently cannot set up source with latest version as the check fails and upgrading an existing source to the latest connector version causes syncs to fail with same error.

Can this PR be safely reverted and rolled back?

  • YES 💚
  • NO ❌

Copy link

vercel bot commented Mar 3, 2025

@kyleromines is attempting to deploy a commit to the Airbyte Growth Team on Vercel.

A member of the Team first needs to authorize it.

@octavia-squidington-iii octavia-squidington-iii added area/connectors Connector related issues area/documentation Improvements or additions to documentation community connectors/source/outreach labels Mar 3, 2025
@kyleromines kyleromines temporarily deployed to community-ci-auto March 3, 2025 22:20 — with GitHub Actions Inactive
@kyleromines kyleromines deployed to community-ci March 3, 2025 22:20 — with GitHub Actions Active
@natikgadzhi
Copy link
Contributor

Oh that's funny. Your fix should NOT work, and the reason interpolated string stopped working is because we ripped out stream_state interpolation.

@pnilan can you post links to examples of replacing stream state with stream slices?

@natikgadzhi
Copy link
Contributor

Roughly look at this as an example: #54663

@kyleromines
Copy link
Contributor Author

Oh that's funny. Your fix should NOT work, and the reason interpolated string stopped working is because we ripped out stream_state interpolation.

I can confirm that it does work after running local tests, but yes this felt hacky to me.

@natikgadzhi natikgadzhi requested a review from btkcodedev March 4, 2025 01:58
@natikgadzhi natikgadzhi assigned btkcodedev and unassigned btkcodedev Mar 4, 2025
@natikgadzhi natikgadzhi changed the title 🐛 Source Outreach: fix unhashable type: 'InterpolatedString' error 🐛 Source Outreach: remove stream_state interpolation Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation community connectors/source/outreach
Projects
Status: 📅 Prioritized
Development

Successfully merging this pull request may close these issues.

4 participants