LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
UN-2852 [FIX] Include shared workflows in endpoint queryset (#1572)
Rahul Johny0faa0b6cd794
diff --git a/backend/workflow_manager/endpoint_v2/views.py b/backend/workflow_manager/endpoint_v2/views.pyindex 986803e86..67c5f012a 100644--- a/backend/workflow_manager/endpoint_v2/views.py+++ b/backend/workflow_manager/endpoint_v2/views.py@@ -8,16 +8,21 @@ from workflow_manager.endpoint_v2.endpoint_utils import WorkflowEndpointUtilsfrom workflow_manager.endpoint_v2.models import WorkflowEndpointfrom workflow_manager.endpoint_v2.serializers import WorkflowEndpointSerializerfrom workflow_manager.endpoint_v2.source import SourceConnector+from workflow_manager.workflow_v2.models.workflow import Workflowclass WorkflowEndpointViewSet(viewsets.ModelViewSet):serializer_class = WorkflowEndpointSerializerdef get_queryset(self) -> QuerySet:+ # Get workflows accessible to the user (owned or shared)+ accessible_workflows = Workflow.objects.for_user(self.request.user)++ # Get endpoints for those workflowsqueryset = (WorkflowEndpoint.objects.all().select_related("workflow")- .filter(workflow__created_by=self.request.user)+ .filter(workflow__in=accessible_workflows))workflow_filter = self.request.query_params.get("workflow", None)if workflow_filter: