From ab3db01e4c0cdfdaafa5bd0fc1883a556eb27539 Mon Sep 17 00:00:00 2001 From: Francisco Aranda Date: Thu, 7 Nov 2024 09:41:42 +0100 Subject: [PATCH 1/5] debug: Show route on logs --- argilla-frontend/middleware/route-guard.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/argilla-frontend/middleware/route-guard.ts b/argilla-frontend/middleware/route-guard.ts index 562e379af2..bc712a0187 100644 --- a/argilla-frontend/middleware/route-guard.ts +++ b/argilla-frontend/middleware/route-guard.ts @@ -24,6 +24,7 @@ const { set } = useLocalStorage(); export default ({ $auth, route, redirect }: Context) => { const { isRunningOnHuggingFace } = useRunningEnvironment(); + console.log(route); // By-pass unknown routes. This is needed to avoid errors with API calls. if (route.name == null) return; From 4336094fcf5cb2530343787ca53da6235dd7b20a Mon Sep 17 00:00:00 2001 From: Francisco Aranda Date: Thu, 7 Nov 2024 09:41:57 +0100 Subject: [PATCH 2/5] delete: Force server build --- argilla-server/pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/argilla-server/pyproject.toml b/argilla-server/pyproject.toml index da4051fde2..67b8ccf245 100644 --- a/argilla-server/pyproject.toml +++ b/argilla-server/pyproject.toml @@ -1,3 +1,4 @@ +# Remove me [project] name = "argilla-server" dynamic = ["version"] From 78a853643ef2026feeadc44b9397fbb2b16374d6 Mon Sep 17 00:00:00 2001 From: Francisco Aranda Date: Thu, 7 Nov 2024 10:17:25 +0100 Subject: [PATCH 3/5] fix: Avoid push route when external==true --- argilla-frontend/v1/infrastructure/services/useRoutes.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/argilla-frontend/v1/infrastructure/services/useRoutes.ts b/argilla-frontend/v1/infrastructure/services/useRoutes.ts index b4f1c2ba45..b604e62484 100644 --- a/argilla-frontend/v1/infrastructure/services/useRoutes.ts +++ b/argilla-frontend/v1/infrastructure/services/useRoutes.ts @@ -133,9 +133,9 @@ export const useRoutes = () => { } else { window.location.href = where; } + } else { + router.push(where); } - - router.push(where); }; const getQuery = () => { From c72b4719f43b0ad3d577064507fc37f6d5ceeeed Mon Sep 17 00:00:00 2001 From: Francisco Aranda Date: Thu, 7 Nov 2024 10:52:31 +0100 Subject: [PATCH 4/5] debug: remove console.log --- argilla-frontend/middleware/route-guard.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/argilla-frontend/middleware/route-guard.ts b/argilla-frontend/middleware/route-guard.ts index bc712a0187..562e379af2 100644 --- a/argilla-frontend/middleware/route-guard.ts +++ b/argilla-frontend/middleware/route-guard.ts @@ -24,7 +24,6 @@ const { set } = useLocalStorage(); export default ({ $auth, route, redirect }: Context) => { const { isRunningOnHuggingFace } = useRunningEnvironment(); - console.log(route); // By-pass unknown routes. This is needed to avoid errors with API calls. if (route.name == null) return; From 4ddd3a0ad499962353d16ac965cc899ae8e5dcba Mon Sep 17 00:00:00 2001 From: Paco Aranda Date: Thu, 7 Nov 2024 10:56:00 +0100 Subject: [PATCH 5/5] revert: remove me --- argilla-server/pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/argilla-server/pyproject.toml b/argilla-server/pyproject.toml index 67b8ccf245..da4051fde2 100644 --- a/argilla-server/pyproject.toml +++ b/argilla-server/pyproject.toml @@ -1,4 +1,3 @@ -# Remove me [project] name = "argilla-server" dynamic = ["version"]