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

🪟 🐛 Fix non-breaking schema changes preference issues #20625

Merged
merged 2 commits into from
Jan 3, 2023

Conversation

edmundito
Copy link
Contributor

What

Fixes three issues:

  • Adds missing i18n string for when sync is disabled
  • Ensures that the options rendered are the ones we can support
  • Custom styling on the label that is not necessary breaks when the resizing small

@edmundito edmundito self-assigned this Dec 18, 2022
@edmundito edmundito requested a review from a team as a code owner December 18, 2022 00:02
@@ -153,6 +153,7 @@
"connectionForm.nonBreakingChangesPreference.label": "Non-breaking schema updates detected*",
"connectionForm.nonBreakingChangesPreference.message": "Set how Airbyte handles syncs when it detects a non-breaking schema change in the source",
"connectionForm.nonBreakingChangesPreference.ignore": "Ignore",
"connectionForm.nonBreakingChangesPreference.disable": "Disable connection",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I made this "Disable connection" instead of "Pause sync" as shown in the design because we don't really have a concept of pausing in the UI and this is what will actually happen - @andyjih thoughts?

@octavia-squidington-iv octavia-squidington-iv added area/platform issues related to the platform area/frontend Related to the Airbyte webapp labels Dec 18, 2022
@@ -11,12 +11,13 @@ import { useConnectionFormService } from "hooks/services/ConnectionForm/Connecti

import styles from "./NonBreakingChangesPreferenceField.module.scss";

const SUPPORTED_PREFERENCES = [NonBreakingChangesPreference.ignore, NonBreakingChangesPreference.disable];
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We may add more options in the future that may not have an i18n string or may need to wait on the backend, so they need to be supported manually.

Comment on lines -12 to -16
.connectorLabel {
max-width: 328px;
margin-right: variables.$spacing-xl;
vertical-align: top;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Probably copied from the Schedule field. That also needs to be cleaned up but I omitted it here because of the scope of the PR.

Copy link
Contributor

@teallarson teallarson left a comment

Choose a reason for hiding this comment

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

Approved pending a thumbs up on wording!

@edmundito edmundito enabled auto-merge (squash) January 3, 2023 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/frontend Related to the Airbyte webapp area/platform issues related to the platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants