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 Salesforce: update regex pattern, specify format to date-time #24071
Source Salesforce: update regex pattern, specify format to date-time #24071
Conversation
/test connector=connectors/source-salesforce
Build PassedTest summary info:
|
Hm, is this a breaking change for connectors that were set up with the `"2021-07-25" format? Maybe adding the Or do we not re-validate that the config matches before we run syncs? (we do however run check again on failed syncs, so that would definitely fail I think) |
@arsenlosenko do you know the answer to my question above? |
@erohmensing sorry for the late response, I don't have an answer to your question right now, let me check if this breaks anything once again. Last night I tested sync locally with format both set to |
@arsenlosenko thanks! By trying it with both do you mean you kept the |
@erohmensing I changed the spec each time, but let me try to pass different values with the same format value in spec, this way we could see if this affects anything |
@artem1205 unfortunately testing with the spec changed won't reproduce the actual behavior since only one version of the spec can be canonical at once. We should also test |
@erohmensing @artem1205 I am still |
Ope, sorry for the incorrect ping @artem1205! |
airbyte-integrations/connectors/source-salesforce/source_salesforce/spec.yaml
Show resolved
Hide resolved
@arsenlosenko do we need fix this https://github.com/airbytehq/airbyte/blob/master/docs/integrations/sources/salesforce.md?plain=1#L51 YYYY-MM-DD ? |
@grubberr I want to check if we can use different date formats, but as you indicated, in docs there is only one specified date format, compared to examples in spec, which are in different format. I am not that familiar with this connector, and don't know if this date/date-time will affect the performance of the source. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving as it seems like this is the correct way to do pattern validation at this fime. (See previous comment)
Before publishing and merging @arsenlosenko you can confirm that spec, check and sync are working for both example formats?
@bnchrch thanks for the review and clarification 👍 |
/test connector=connectors/source-salesforce
Build PassedTest summary info:
|
@bnchrch I have tested setup of connector locally with different date formats, using only Check, spec and sync works as well, will proceed to publish and merge after tests and CI are green |
/publish connector=connectors/source-salesforce
if you have connectors that successfully published but failed definition generation, follow step 4 here |
…irbytehq#24071) * Source Salesforce: remove regex pattern, specify format to date-time * Update changelog * Automated Change * Add updated regex pattern for additional validation * Automated Change * auto-bump connector version --------- Co-authored-by: arsenlosenko <arsenlosenko@users.noreply.github.com> Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
…24071) * Source Salesforce: remove regex pattern, specify format to date-time * Update changelog * Automated Change * Add updated regex pattern for additional validation * Automated Change * auto-bump connector version --------- Co-authored-by: arsenlosenko <arsenlosenko@users.noreply.github.com> Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
…24071) * Source Salesforce: remove regex pattern, specify format to date-time * Update changelog * Automated Change * Add updated regex pattern for additional validation * Automated Change * auto-bump connector version --------- Co-authored-by: arsenlosenko <arsenlosenko@users.noreply.github.com> Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
What
User is not able to set
start_date
properly during setup of Source Salesforce. See slack thread for more contextHow
Remove regex pattern that was used previously, specify
date-time
as format, use it for validation.Recommended reading order
x.java
y.python
🚨 User Impact 🚨
Are there any breaking changes? What is the end result perceived by the user? If yes, please merge this PR with the 🚨🚨 emoji so changelog authors can further highlight this if needed.
Pre-merge Checklist
Expand the relevant checklist and delete the others.
New Connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampledocs/integrations/README.md
airbyte-integrations/builds.md
Airbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing/publish
command described hereUpdating a connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampleAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing/publish
command described hereConnector Generator
-scaffold
in their name) have been updated with the latest scaffold by running./gradlew :airbyte-integrations:connector-templates:generator:testScaffoldTemplates
then checking in your changes