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 Delighted: fix Date Since date-format bug in UI #23909

Merged
merged 4 commits into from
Mar 9, 2023

Conversation

bazarnov
Copy link
Collaborator

@bazarnov bazarnov commented Mar 9, 2023

What

Resolving: https://github.com/airbytehq/oncall/issues/1623

How

  • changed the pattern to catch the RFC3339 format, which UI uses for the date picker
  • updated manifest.yaml to convert the input config["since"] from 2 formats (old and new) and convert it to the right format needed for the slices.

🚨 User Impact 🚨

No impact is expected since backward compatibility is supported for this issue.

Pre-merge Checklist

Expand the relevant checklist and delete the others.

Updating a connector

Community member or Airbyter

  • Unit & integration tests added and passing. Community members, please provide proof of success locally e.g: screenshot or copy-paste unit, integration, and acceptance test output. To run acceptance tests for a Python connector, follow instructions in the README. For java connectors run ./gradlew :airbyte-integrations:connectors:<name>:integrationTest.
  • Code reviews completed
  • Documentation updated
    • Connector's README.md
    • Connector's bootstrap.md. See description and examples
    • Changelog updated in docs/integrations/<source or destination>/<name>.md including changelog. See changelog example
  • PR name follows PR naming conventions

Airbyter

If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.

  • Create a non-forked branch based on this PR and test the below items on it
  • Build is successful
  • If new credentials are required for use in CI, add them to GSM. Instructions.
  • /test connector=connectors/<name> command is passing
  • New Connector version released on Dockerhub and connector version bumped by running the /publish command described here

@octavia-squidington-iii octavia-squidington-iii added the area/documentation Improvements or additions to documentation label Mar 9, 2023
@bazarnov bazarnov self-assigned this Mar 9, 2023
@bazarnov bazarnov requested review from davydov-d, grubberr, lazebnyi and a team March 9, 2023 14:21
@bazarnov
Copy link
Collaborator Author

bazarnov commented Mar 9, 2023

@airbytehq/connector-extensibility Please check this fix, since with the new Date Picker there are issues with selecting the date in the format of RFC3339 but the connector expects a different input format. This might be a potential P0 in the future for all other connectors. Another use case: what if the date field should be in the format of date not date-time and Date Picker will return date-time?

The thing is that the date picker should be able to return the date in the format connector expects it, to support backward compatibility

@airbytehq/connector-operations The bugs like this should be covered by the CAT.

@bazarnov
Copy link
Collaborator Author

bazarnov commented Mar 9, 2023

/test connector=connectors/source-delighted

🕑 connectors/source-delighted https://github.com/airbytehq/airbyte/actions/runs/4375935328
✅ connectors/source-delighted https://github.com/airbytehq/airbyte/actions/runs/4375935328
No Python unittests run

Build Passed

Test summary info:

=========================== short test summary info ============================
SKIPPED [1] ../usr/local/lib/python3.9/site-packages/connector_acceptance_test/tests/test_core.py:109: Backward compatibility tests are disabled for version 0.2.1.
SKIPPED [1] ../usr/local/lib/python3.9/site-packages/connector_acceptance_test/tests/test_core.py:509: The previous and actual discovered catalogs are identical.
================== 35 passed, 2 skipped in 346.08s (0:05:46) ===================

Copy link
Contributor

@evantahler evantahler left a comment

Choose a reason for hiding this comment

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

No impact is expected since backward compatibility is supported for this issue.

Excellent!

Of note, this might be a good place to emit an airbyte control message to update the old format of the config to the new format so we don't need to keep format_datetime() around forever. I'll write up a guide on that process later today!

@bazarnov
Copy link
Collaborator Author

bazarnov commented Mar 9, 2023

No impact is expected since backward compatibility is supported for this issue.

Excellent!

Of note, this might be a good place to emit an airbyte control message to update the old format of the config to the new format so we don't need to keep format_datetime() around forever. I'll write up a guide on that process later today!

@evantahler please refer to this issue, so we have the context later on, thanks! Awesome!

@bazarnov
Copy link
Collaborator Author

bazarnov commented Mar 9, 2023

/publish connector=connectors/source-delighted

🕑 Publishing the following connectors:
connectors/source-delighted
https://github.com/airbytehq/airbyte/actions/runs/4377298690


Connector Did it publish? Were definitions generated?
connectors/source-delighted

if you have connectors that successfully published but failed definition generation, follow step 4 here ▶️

@bazarnov bazarnov merged commit bf33a5d into master Mar 9, 2023
@bazarnov bazarnov deleted the baz/source-delighted-fix-spec-date-since-pattern branch March 9, 2023 19:04
danielduckworth pushed a commit to danielduckworth/airbyte that referenced this pull request Mar 13, 2023
adriennevermorel pushed a commit to adriennevermorel/airbyte that referenced this pull request Mar 17, 2023
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 connectors/source/delighted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants