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

🪟🐛 Connector builder UI: Fix datetime stream slicer #21161

Merged
merged 5 commits into from
Jan 11, 2023

Conversation

flash1293
Copy link
Contributor

@flash1293 flash1293 commented Jan 9, 2023

The 0.16 upgrade of the CDK changed some fields in the datetime stream slicer. This PR adjusts the UI accordingly:

  • Add cursor_granularity
  • Remove wrong pattern matching and example for lookback window and step

Didn't add a better pattern for these inputs because the ISO standard for durations is a little more complex and I think a wrong pattern is worse than none, especially as the server is doing validation as well.

We can add one back in a later step.

@flash1293 flash1293 marked this pull request as ready for review January 9, 2023 18:48
@flash1293 flash1293 requested a review from lmossman January 10, 2023 15:10
Copy link
Contributor

@lmossman lmossman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally and it works as expected. Had a couple small nits on the descriptions but otherwise LGTM

Joe Reuter and others added 3 commits January 11, 2023 10:08
@flash1293 flash1293 enabled auto-merge (squash) January 11, 2023 09:09
@flash1293
Copy link
Contributor Author

You can see how it failed the build here (before the fix with the unit tests was merged in): https://github.com/airbytehq/airbyte/actions/runs/3882948666/jobs/6623703102

@flash1293 flash1293 merged commit 592c656 into master Jan 11, 2023
@flash1293 flash1293 deleted the flash1293/add-cursor-granularity branch January 11, 2023 09:43
jbfbell pushed a commit that referenced this pull request Jan 13, 2023
* fix datetime stream slicer

* Update airbyte-webapp/src/components/connectorBuilder/Builder/StreamSlicerSection.tsx

Co-authored-by: Lake Mossman <lake@airbyte.io>

* Update airbyte-webapp/src/components/connectorBuilder/Builder/StreamSlicerSection.tsx

Co-authored-by: Lake Mossman <lake@airbyte.io>

Co-authored-by: Lake Mossman <lake@airbyte.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/frontend Related to the Airbyte webapp team/extensibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants