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

Use the configuration diff calculation in the update endpoint #14626

Merged
merged 53 commits into from
Jul 14, 2022

Conversation

benmoriceau
Copy link
Contributor

@benmoriceau benmoriceau commented Jul 12, 2022

What

Use the diff calculation in order to add stream which had their configuration being changed to the stream to reset.

@benmoriceau benmoriceau marked this pull request as ready for review July 12, 2022 21:23
@benmoriceau benmoriceau temporarily deployed to more-secrets July 12, 2022 21:24 Inactive
@benmoriceau benmoriceau temporarily deployed to more-secrets July 12, 2022 21:35 Inactive
@benmoriceau benmoriceau marked this pull request as draft July 12, 2022 22:22
@benmoriceau benmoriceau temporarily deployed to more-secrets July 12, 2022 22:31 Inactive
Base automatically changed from bmoric/calculate-config-diff to master July 14, 2022 18:32
@benmoriceau benmoriceau marked this pull request as ready for review July 14, 2022 18:37
@benmoriceau benmoriceau temporarily deployed to more-secrets July 14, 2022 18:38 Inactive
@lmossman lmossman changed the title Bmoric/change the diff Use the configuration diff calculation in the update endpoint Jul 14, 2022
final List<StreamDescriptor> apiStreamsToReset = getStreamsToReset(catalogDiff);
final Set<StreamDescriptor> changedConfigStreamDescriptors = connectionsHandler.getConfigurationDiff(apiExistingCatalog, newAirbyteCatalog);
final Set<StreamDescriptor> allStreamToReset = new HashSet<>();
allStreamToReset.addAll(apiStreamsToReset);
Copy link
Contributor

Choose a reason for hiding this comment

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

since this is a set, adding duplicates won't add duplicates to the set, right?

Copy link
Contributor

Choose a reason for hiding this comment

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

That's right

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.

LGTM

@benmoriceau benmoriceau temporarily deployed to more-secrets July 14, 2022 20:19 Inactive
@benmoriceau benmoriceau merged commit 2d7b7f7 into master Jul 14, 2022
@benmoriceau benmoriceau deleted the bmoric/change-the-diff branch July 14, 2022 21:38
jsrcodes added a commit to jsrcodes/airbyte that referenced this pull request Jul 15, 2022
…rbytehq-master

* 'master' of https://github.com/airbytehq/airbyte: (1141 commits)
  pass USE_STREAM_CAPABLE_STATE env var to containers/deployments (airbytehq#14737)
  Bump mqtt connector (airbytehq#14648)
  Add error code to ManualOperationResult (airbytehq#14657)
  Bump elasticsearch version (airbytehq#14640)
  Ryan/sync oracle version number (airbytehq#14736)
  Fixed linter issue with add_fields.py comments (airbytehq#14742)
  🎉Redshift, Databricks, Snowflake, S3 Destinations: Make S3 output filename configurable (airbytehq#14494)
  🐛Source-mssql: aligned regular and cdc syncs and its datatype tests (airbytehq#14379)
  🎉 Source Amazon Seller Partner: Add new streams (airbytehq#13604)
  bump source-file-secure (airbytehq#14704)
  🎉 New source: Timely airbytehq#13292 (airbytehq#14335)
  🪟🔧 Refactor feature service (airbytehq#14559)
  [low code cdk] add a transformation for adding fields into an outgoing record (airbytehq#14638)
  Bump destination-postgres to 0.3.21 (airbytehq#14479)
  Remove `additionalProperties: false` from JDBC destination connectors (airbytehq#14618)
  🎉 Source Notion: add OAuth authorization for source-notion connector (airbytehq#14706)
  Use the configuration diff calculation in the update endpoint (airbytehq#14626)
  🪟 🐛 Fix input validation on blur and cleanup signup error handling (airbytehq#14724)
  lower sleep after wait for successful job (airbytehq#14725)
  Add configuration diff (airbytehq#14603)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/platform issues related to the platform area/server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants