From 9dd034f54c532e50edca9b30c43e7e2cb5fd7fda Mon Sep 17 00:00:00 2001 From: Tessa Walsh Date: Tue, 21 Oct 2025 11:52:56 -0400 Subject: [PATCH 1/2] Use relative filepath inside oid dir for profiles --- backend/btrixcloud/profiles.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/btrixcloud/profiles.py b/backend/btrixcloud/profiles.py index 5ddf2d2430..e8a4d33d39 100644 --- a/backend/btrixcloud/profiles.py +++ b/backend/btrixcloud/profiles.py @@ -414,6 +414,7 @@ async def get_profile_storage_path_and_proxy( try: profile = await self.get_profile(profileid, org) storage_path = profile.resource.filename if profile.resource else "" + storage_path = storage_path.lstrip(f"{org.id}/") return storage_path, profile.proxyId or "" # pylint: disable=bare-except except: From 61c567605dd7a3d071a70e5aae11fde7b41e8492 Mon Sep 17 00:00:00 2001 From: Tessa Walsh Date: Tue, 21 Oct 2025 12:16:18 -0400 Subject: [PATCH 2/2] Add profile to crawl already being used in tests --- backend/test/test_run_crawl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/test/test_run_crawl.py b/backend/test/test_run_crawl.py index 01ded77052..f7807be143 100644 --- a/backend/test/test_run_crawl.py +++ b/backend/test/test_run_crawl.py @@ -64,7 +64,7 @@ def test_create_new_config(admin_auth_headers, default_org_id): assert data["storageQuotaReached"] is False -def test_start_crawl(admin_auth_headers, default_org_id): +def test_start_crawl(admin_auth_headers, default_org_id, profile_id): # Start crawl. crawl_data = { "runNow": True, @@ -77,6 +77,7 @@ def test_start_crawl(admin_auth_headers, default_org_id): # limit now set via 'max_pages_per_crawl' global limit # "limit": 1, }, + "profileid": profile_id, } r = requests.post( f"{API_PREFIX}/orgs/{default_org_id}/crawlconfigs/",