Merge pull request #79 from Pythagora-io/logical_fixes_z_2

Fix for adding related_api_endpoints
This commit is contained in:
LeonOstrez
2025-01-23 07:23:01 +00:00
committed by GitHub
2 changed files with 4 additions and 5 deletions

View File

@@ -247,7 +247,7 @@ class TechLead(RelevantFilesMixin, BaseAgent):
"pre_breakdown_testing_instructions": task.testing_instructions,
"status": TaskStatus.TODO,
"sub_epic_id": sub_epic_number,
"related_api_endpoints": task.related_api_endpoints,
"related_api_endpoints": [rae.model_dump() for rae in (task.related_api_endpoints or [])],
}
for task in epic_plan.plan
]

View File

@@ -46,12 +46,11 @@ You are currently working on task #{{ current_task_index + 1 }} with the followi
```
{{ task.description }}
```
{% if related_api_endpoints|length > 0 %}
In this task, you need to focus on implementing the following endpoints:{% for api in related_api_endpoints %}{{ "`" ~ api.endpoint ~ "`" }}{% if not loop.last %},{% endif %}{% endfor %}
In this task, you need to focus on implementing the following endpoints:
{% for api in related_api_endpoints %}
{{ "`" ~ api.endpoint ~ "`" }}{% if not loop.last %}
{% endif %}
{% endfor %}
You must implement the backend API endpoints, remove the mocked that on the frontend side, and replace it with the real API request, implement the database model (if it's not implemented already), and implement the utility function (eg. 3rd party integration) that is needed for this endpoint. Whenever you need to create a utility function that uses a 3rd party integration, you **MUST** mock that function (create the function, return a mocked data, and specify the structure of the input and the output of the function in the comment above the function).
{% if task.get('pre_breakdown_testing_instructions') is not none %}