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

Choose optimal sync modes by default on UI #12411

Merged
merged 10 commits into from
Apr 29, 2022

Conversation

dizel852
Copy link
Contributor

@dizel852 dizel852 commented Apr 27, 2022

What

Closes #9625
Set the optimal sync modes for Source and Destination by default on UI.

How

Choosing the mode by priority:

  1. Incremental(cursor defined) => Append Dedup
  2. Full Refresh => Overwrite
  3. Incremental => Append
  4. Full Refresh => Append

image

Tests

Screenshot at Apr 28 23-11-53

Sync Mode priority:
1. Incremental(cursor defined) => Append Dedup
2. Full Refresh => Overwrite
3. Incremental => Append
4. Full Refresh => Append
@dizel852 dizel852 added area/frontend area/platform issues related to the platform labels Apr 27, 2022
@dizel852 dizel852 requested a review from a team as a code owner April 27, 2022 18:15
@CLAassistant
Copy link

CLAassistant commented Apr 27, 2022

CLA assistant check
All committers have signed the CLA.

- replace func "isEmpty" with "[].length"
- replace named export with direct export
- update "config" type for updateStreamConfig func
- rename "getOptimalSyncMode" to "setOptimalSyncMode"
@dizel852 dizel852 assigned dizel852 and krishnaglick and unassigned dizel852 Apr 29, 2022
@krishnaglick krishnaglick merged commit 6897a60 into master Apr 29, 2022
@krishnaglick krishnaglick deleted the 9625-choose-optimal-sync-modes-by-default-on-ui branch April 29, 2022 14:17
teallarson added a commit that referenced this pull request May 4, 2022
teallarson added a commit that referenced this pull request May 4, 2022
dizel852 added a commit that referenced this pull request May 11, 2022
suhomud pushed a commit that referenced this pull request May 23, 2022
* fix CatalogSectionInner component padding

* fix React key error in StreamFieldTable component

* Update choosing the optimal sync mode logic.

Sync Mode priority:
1. Incremental(cursor defined) => Append Dedup
2. Full Refresh => Overwrite
3. Incremental => Append
4. Full Refresh => Append

* Fixes after comments to PR:
- replace func "isEmpty" with "[].length"
- replace named export with direct export
- update "config" type for updateStreamConfig func
- rename "getOptimalSyncMode" to "setOptimalSyncMode"

* remove fp-ts package

* fix wrong condition

* cover formConfigHelpers with tests

* add npm script: run tests with coverage

* tiny fix: test assert
suhomud pushed a commit that referenced this pull request May 23, 2022
dizel852 added a commit that referenced this pull request May 31, 2022
* Revert "Revert "Choose optimal sync modes by default on UI (#12411)" (#12583)"

This reverts commit 9789ffd.

* get optimal sync mode only in creation mode

* sort sync mode options by priority

* add tests for calculateInitialCatalog

* remove duplicated tests

* fixed one-line 'if'

* move calculationInitialCatalog function to file and export it as default

* - fix merge conflicts
- fix Type

* update tests
jscottpolevault pushed a commit to jscottpolevault/airbyte that referenced this pull request Jun 1, 2022
…ehq#12770)

* Revert "Revert "Choose optimal sync modes by default on UI (airbytehq#12411)" (airbytehq#12583)"

This reverts commit 9789ffd.

* get optimal sync mode only in creation mode

* sort sync mode options by priority

* add tests for calculateInitialCatalog

* remove duplicated tests

* fixed one-line 'if'

* move calculationInitialCatalog function to file and export it as default

* - fix merge conflicts
- fix Type

* update tests
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Choose optimal sync modes by default on UI
4 participants