Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "bug",
"message": "Fixed a bug that caused a crash when trying to view an Automation's settings in development mode.",
"issue_origin": "github",
"issue_number": null,
"domain": "automation",
"bullet_points": [],
"created_at": "2026-03-16"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "bug",
"message": "Fixed a crash when fetching custom code for a non-existent builder ID.",
"issue_origin": "github",
"issue_number": null,
"domain": "builder",
"bullet_points": [],
"created_at": "2026-03-12"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
from rest_framework.permissions import AllowAny
from rest_framework.views import APIView

from baserow.api.applications.errors import ERROR_APPLICATION_DOES_NOT_EXIST
from baserow.api.decorators import map_exceptions
from baserow.api.schemas import get_error_schema
from baserow.contrib.builder.errors import ERROR_BUILDER_DOES_NOT_EXIST
from baserow.contrib.builder.exceptions import BuilderDoesNotExist
from baserow.contrib.builder.service import BuilderService
from baserow.core.exceptions import ApplicationDoesNotExist
from baserow_enterprise.api.authentication import (
AuthenticateFromUserSessionAuthentication,
)
Expand Down Expand Up @@ -46,12 +46,16 @@ class PublicCustomCodeView(APIView):
description=("Returns the css/js for the given builder."),
responses={
200: str,
404: get_error_schema(["ERROR_BUILDER_DOES_NOT_EXIST"]),
404: get_error_schema(
[
"ERROR_APPLICATION_DOES_NOT_EXIST",
]
),
},
)
@map_exceptions(
{
BuilderDoesNotExist: ERROR_BUILDER_DOES_NOT_EXIST,
ApplicationDoesNotExist: ERROR_APPLICATION_DOES_NOT_EXIST,
}
)
def get(self, request, builder_id, code_type):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,3 +263,17 @@ def test_get_enterprise_builder_custom_code_public_no_licence(api_client, data_f
url,
)
assert response.status_code == HTTP_404_NOT_FOUND


@pytest.mark.django_db
def test_get_enterprise_builder_custom_code_public_application_not_found(
enable_enterprise, api_client, data_fixture
):
url = reverse(
"api:enterprise:custom_code:public_js",
kwargs={"builder_id": 123456},
)

response = api_client.get(url)

assert response.status_code == HTTP_404_NOT_FOUND
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export default {
name: '',
notification: false,
},
allowedValues: ['name', 'notification'],
}
},
validations() {
Expand Down
Loading