Skip to content

Commit

Permalink
Merge branch 'main' into fix-document-link
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwamizamurai authored Apr 8, 2024
2 parents 9145e6e + 94e5fa3 commit 209096a
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 29 deletions.
7 changes: 6 additions & 1 deletion airbyte-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,12 @@ private def updateApiClientWithFailsafe(def clientPath) {
'val response = client.newCall(request).execute()',
'''val call = client.newCall(request)
val failsafeCall = FailsafeCall.with(policy).compose(call)
val response: Response = failsafeCall.execute()''')
val response: Response = failsafeCall.execute()
return response.use { processResponse(response) }
}
protected inline fun <reified T: Any?> processResponse(response: Response): ApiResponse<T?> {''')

// add imports if not exist
if (!apiClientFileText.contains("import dev.failsafe.RetryPolicy")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class BootloaderTest {
// ⚠️ This line should change with every new migration to show that you meant to make a new
// migration to the prod database
private static final String CURRENT_CONFIGS_MIGRATION_VERSION = "0.55.1.003";
private static final String CURRENT_JOBS_MIGRATION_VERSION = "0.57.2.001";
private static final String CURRENT_JOBS_MIGRATION_VERSION = "0.50.4.003";
private static final String CDK_VERSION = "1.2.3";

@BeforeEach
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/

export interface Experiments {
"authPage.keycloak": boolean;
"authPage.rightSideUrl": string | undefined;
"authPage.signup.hideCompanyName": boolean;
"authPage.signup.hideName": boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { PageTrackingCodes, useTrackPage } from "core/services/analytics";
import { useAuthService } from "core/services/auth";
import { useLocalStorage } from "core/utils/useLocalStorage";
import { useAppMonitoringService } from "hooks/services/AppMonitoringService";
import { useExperiment } from "hooks/services/Experiment";
import { useNotificationService } from "hooks/services/Notification";
import { CloudRoutes } from "packages/cloud/cloudRoutePaths";
import { LoginFormErrorCodes } from "packages/cloud/services/auth/types";
Expand Down Expand Up @@ -54,7 +55,9 @@ export const LoginPage: React.FC = () => {
const { registerNotification } = useNotificationService();
const { trackError } = useAppMonitoringService();
const [searchParams] = useSearchParams();
const [keycloakAuthEnabled] = useLocalStorage("airbyte_keycloak-auth-ui", false);
const [keycloakAuthEnabledLocalStorage] = useLocalStorage("airbyte_keycloak-auth-ui", false);
const keycloakAuthEnabledExperiment = useExperiment("authPage.keycloak", false);
const keycloakAuthEnabled = keycloakAuthEnabledExperiment || keycloakAuthEnabledLocalStorage;
const loginRedirectString = searchParams.get("loginRedirect");
const isAcceptingInvitation = loginRedirectString?.includes("accept-invite");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { Spinner } from "components/ui/Spinner";

import { AuthOAuthLogin, OAuthProviders } from "core/services/auth";
import { useLocalStorage } from "core/utils/useLocalStorage";
import { useExperiment } from "hooks/services/Experiment";
import { CloudRoutes } from "packages/cloud/cloudRoutePaths";
import { useKeycloakService } from "packages/cloud/services/auth/KeycloakService";

Expand Down Expand Up @@ -75,7 +76,9 @@ export const OAuthLogin: React.FC<OAuthLoginProps> = ({ loginWithOAuth, type })
const [searchParams] = useSearchParams();
const loginRedirect = searchParams.get("loginRedirect");
const navigate = useNavigate();
const [keycloakAuthEnabled] = useLocalStorage("airbyte_keycloak-auth-ui", false);
const [keycloakAuthEnabledLocalStorage] = useLocalStorage("airbyte_keycloak-auth-ui", false);
const keycloakAuthEnabledExperiment = useExperiment("authPage.keycloak", false);
const keycloakAuthEnabled = keycloakAuthEnabledExperiment || keycloakAuthEnabledLocalStorage;
const {
redirectToSignInWithGithub,
redirectToSignInWithGoogle,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { Icon } from "components/ui/Icon";

import { PageTrackingCodes, useTrackPage } from "core/services/analytics";
import { useAuthService } from "core/services/auth";
import { useExperiment } from "hooks/services/Experiment";

import { SignupForm } from "./components/SignupForm";
import styles from "./SignupPage.module.scss";
Expand All @@ -32,7 +33,9 @@ const Detail: React.FC<React.PropsWithChildren<unknown>> = ({ children }) => {
};

const SignupPage: React.FC<SignupPageProps> = () => {
const [keycloakAuthEnabled] = useLocalStorage("airbyte_keycloak-auth-ui", false);
const [keycloakAuthEnabledLocalStorage] = useLocalStorage("airbyte_keycloak-auth-ui", false);
const keycloakAuthEnabledExperiment = useExperiment("authPage.keycloak", false);
const keycloakAuthEnabled = keycloakAuthEnabledExperiment || keycloakAuthEnabledLocalStorage;
const { loginWithOAuth, signUp } = useAuthService();
useTrackPage(PageTrackingCodes.SIGNUP);

Expand Down

0 comments on commit 209096a

Please sign in to comment.