Skip to content

Commit

Permalink
chore: finetuning
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanFl committed Dec 9, 2024
1 parent 553c8b5 commit 611f24f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 14 deletions.
8 changes: 0 additions & 8 deletions backend/application/core/api/serializers_observation.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ class ObservationSerializer(ModelSerializer):
origin_component_purl_namespace = SerializerMethodField()
issue_tracker_issue_url = SerializerMethodField()
assessment_needs_approval = SerializerMethodField()
origin_component_name_version = SerializerMethodField()

class Meta:
model = Observation
Expand Down Expand Up @@ -200,9 +199,6 @@ def validate_product(self, product: Product) -> Product:

return product

def get_origin_component_name_version(self, observation: Observation) -> str:
return get_origin_component_name_version(observation)


class ObservationTitleSerializer(ModelSerializer):
class Meta:
Expand Down Expand Up @@ -554,7 +550,6 @@ class Meta:

class ObservationLogListSerializer(ModelSerializer):
observation_data = ObservationListSerializer(source="observation")
branch_name = SerializerMethodField()
user_full_name = SerializerMethodField()
approval_user_full_name = SerializerMethodField()

Expand All @@ -570,9 +565,6 @@ def get_approval_user_full_name(self, obj: Observation_Log) -> Optional[str]:

return None

def get_branch_name(self, obj: Observation_Log) -> str:
return get_branch_name(obj.observation)

class Meta:
model = Observation_Log
fields = "__all__"
Expand Down
Loading

0 comments on commit 611f24f

Please sign in to comment.