Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
57945e2
check for request in kwargs as well
Deepthi-Chand Jun 21, 2025
a3f8610
add all org query
Deepthi-Chand Jun 23, 2025
efd622f
add example env file
Deepthi-Chand Jun 23, 2025
f996c1b
use distng when fetching org and usecase relationships
Deepthi-Chand Jun 23, 2025
2b63e87
update logging limits
Deepthi-Chand Jun 23, 2025
f2a8acb
allow editing only draft datasets
Deepthi-Chand Jun 23, 2025
3e22e2c
return those usecases where org is owner as well
Deepthi-Chand Jun 23, 2025
5ff4e6e
update publishers query to handle individual publishers
Deepthi-Chand Jun 23, 2025
601a7cd
add constraints for user role editing
Deepthi-Chand Jun 23, 2025
7af8108
use base mutation for assiging user role
Deepthi-Chand Jun 23, 2025
b341641
add permission class to delete tag
Deepthi-Chand Jun 23, 2025
fec23c5
use DjangoValidationError when deleting tags
Deepthi-Chand Jun 23, 2025
33333bc
add basic cloudformation templates
Deepthi-Chand Jun 25, 2025
bb1e96b
always retain existing description
Deepthi-Chand Jun 25, 2025
2b5fb9e
handle updating resource schema when updating file
Deepthi-Chand Jun 25, 2025
37c6006
config changes to infra
Deepthi-Chand Jun 25, 2025
674948c
add templates for otel and main ecs services
Deepthi-Chand Jun 25, 2025
87188f2
ignore aws env files
Deepthi-Chand Jun 25, 2025
ac69774
use existing task definition to deploy
Deepthi-Chand Jun 25, 2025
ccaae5a
add efs to task definition and fix dockerfile to have a execution com…
Deepthi-Chand Jun 26, 2025
74ee3d8
add docker entrypoint
Deepthi-Chand Jun 26, 2025
316f472
add validations for update dataset
Deepthi-Chand Jun 26, 2025
b3a05f7
add draft validation and expand update_usecase mutation
Deepthi-Chand Jun 26, 2025
e3b55ed
use data for update_usecase mutation
Deepthi-Chand Jun 26, 2025
7dc1c28
dont handle django errors for update_use_case
Deepthi-Chand Jun 26, 2025
e864fad
strip text inputs
Deepthi-Chand Jun 26, 2025
139f1cb
add platform_url to usecase
Deepthi-Chand Jun 26, 2025
c7afb27
disable transitEncryption
Deepthi-Chand Jun 26, 2025
4596bfb
make sure efs volume is mounted
Deepthi-Chand Jun 26, 2025
b0f9aea
use docker volume instead of efs
Deepthi-Chand Jun 26, 2025
31b01da
remove tags and sector update from update_use_case
Deepthi-Chand Jun 27, 2025
dfa3e0d
use status value for update
Deepthi-Chand Jun 27, 2025
826dd14
add checks for title on usecase update
Deepthi-Chand Jun 30, 2025
07c92a8
add checks for title on usecase update
Deepthi-Chand Jun 30, 2025
b078c22
fix running status enum
Deepthi-Chand Jun 30, 2025
9b79387
add composite sources seoperate metadata fields
Deepthi-Chand Jun 30, 2025
d395d30
add actve sectors query
Deepthi-Chand Jun 30, 2025
9c595a9
add order, paginationa and filter to active sectors query
Deepthi-Chand Jun 30, 2025
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
Prev Previous commit
Next Next commit
add platform_url to usecase
  • Loading branch information
Deepthi-Chand committed Jun 26, 2025
commit 139f1cbe370dbbd8b4cdcf75c5f6f7068364ed32
1 change: 1 addition & 0 deletions api/models/UseCase.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class UseCase(models.Model):
)
started_on = models.DateField(blank=True, null=True)
completed_on = models.DateField(blank=True, null=True)
platform_url = models.URLField(blank=True, null=True)

def save(self, *args: Any, **kwargs: Any) -> None:
if self.title and not self.slug:
Expand Down
22 changes: 21 additions & 1 deletion api/schema/usecase_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,14 @@ class UseCaseInputPartial:

id: str
title: auto
slug: auto
summary: auto
platform_url: auto
tags: auto
sectors: auto
started_on: auto
completed_on: auto
logo: auto
running_status: auto


@strawberry.type(name="Query")
Expand Down Expand Up @@ -357,6 +363,20 @@ def update_use_case(self, info: Info, data: UseCaseInputPartial) -> TypeUseCase:
usecase.title = data.title.strip()
if data.summary is not None:
usecase.summary = data.summary.strip()
if data.platform_url is not None:
usecase.platform_url = data.platform_url.strip()
if data.tags is not None:
_update_usecase_tags(usecase, data.tags)
if data.sectors is not None:
_update_usecase_sectors(usecase, data.sectors)
if data.started_on is not None:
usecase.started_on = data.started_on
if data.completed_on is not None:
usecase.completed_on = data.completed_on
if data.running_status is not None:
usecase.running_status = data.running_status
if data.logo is not None:
usecase.logo = data.logo
usecase.save()
return TypeUseCase.from_django(usecase)

Expand Down
3 changes: 3 additions & 0 deletions api/types/type_usecase.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ class TypeUseCase(BaseType):
organization: Optional[TypeOrganization] = strawberry.field(
description="Organization associated with this use case"
)
platform_url: Optional[str] = strawberry.field(
description="URL of the platform where this use case is published"
)

@strawberry.field(
description="Check if this use case is created by an individual user."
Expand Down
Loading