-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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: Add the ability to filter streams #8871
🎉 Source Salesforce: Add the ability to filter streams #8871
Conversation
/test connector=connectors/source-salesforce
|
/test connector=connectors/source-salesforce
|
/test connector=connectors/source-salesforce
|
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.
LGTM. Have just one question for unit tests.
sf_object.instance_url = "https://fase-account.salesforce.com" | ||
sf_object.describe = Mock(return_value={"sobjects": [{"name": f"FakeStream{i}"} for i in range(100)]}) | ||
filtered_streams = sf_object.get_validated_streams(config=updated_config) | ||
assert len(filtered_streams) == number_of_filtered_streams |
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.
perhaps we may check the steams by name instead of just count them?
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.
That is, you propose to use the same method to filter the names of streams, and in the end compare them with each other, it is strange?
Could you tell us in more detail how you see this implementation?
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.
I just suggest to compare filtered_stream == expected_filtered_streams
.
E.g. ['stream1', 'stream2'] == ['stream1']
Is it possible?
/publish connector=connectors/source-salesforce
|
/publish connector=connectors/source-salesforce
|
What
resolves #7031.
How
A function has been added to the specification that allows users to specify values for filtering streams, as well as specify the type of option for filtering.
It is Optional field
Recommended reading order
x.java
y.python
Pre-merge Checklist
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 here