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-2890 [FEAT] Enable organization-level sharing for pipelines (ETL and TASK) (#1633)
Rahul Johny457fb88441d5
diff --git a/backend/pipeline_v2/models.py b/backend/pipeline_v2/models.pyindex 27ad84641..cdd85405f 100644--- a/backend/pipeline_v2/models.py+++ b/backend/pipeline_v2/models.py@@ -23,11 +23,12 @@ class PipelineModelManager(DefaultOrganizationManagerMixin, models.Manager):"""Filter pipelines that the user can access:- Pipelines created by the user- Pipelines shared with the user+ - Pipelines shared with the entire organization"""return self.filter(Q(created_by=user) # Owned by user| Q(shared_users=user) # Shared with user- # Q(shared_to_org=True) # Org-wide sharing (optional)+ | Q(shared_to_org=True) # Shared to entire organization).distinct()diff --git a/backend/pipeline_v2/views.py b/backend/pipeline_v2/views.pyindex b7a1cce17..396729f39 100644--- a/backend/pipeline_v2/views.py+++ b/backend/pipeline_v2/views.py@@ -9,7 +9,7 @@ from api_v2.postman_collection.dto import PostmanCollectionfrom django.db import IntegrityErrorfrom django.db.models import QuerySetfrom django.http import HttpResponse-from permissions.permission import IsOwner, IsOwnerOrSharedUser+from permissions.permission import IsOwner, IsOwnerOrSharedUserOrSharedToOrgfrom rest_framework import serializers, status, viewsetsfrom rest_framework.decorators import actionfrom rest_framework.request import Request@@ -52,7 +52,7 @@ class PipelineViewSet(viewsets.ModelViewSet):def get_permissions(self) -> list[Any]:if self.action in ["destroy", "partial_update", "update"]:return [IsOwner()]- return [IsOwnerOrSharedUser()]+ return [IsOwnerOrSharedUserOrSharedToOrg()]serializer_class = PipelineSerializerdiff --git a/frontend/src/components/pipelines-or-deployments/pipelines/Pipelines.jsx b/frontend/src/components/pipelines-or-deployments/pipelines/Pipelines.jsxindex 0233c4a96..0a105862d 100644--- a/frontend/src/components/pipelines-or-deployments/pipelines/Pipelines.jsx+++ b/frontend/src/components/pipelines-or-deployments/pipelines/Pipelines.jsx@@ -759,7 +759,7 @@ function Pipelines({ type }) {loading={isLoadingShare}allUsers={Array.isArray(allUsers) ? allUsers : []}onApply={onShare}- isSharableToOrg={false}+ isSharableToOrg={true}/>)}</div>