Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Commit

Permalink
chore: Add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
frascuchon committed Mar 8, 2024
1 parent 68e0101 commit cfb72e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/argilla_server/apis/v1/handlers/datasets/questions.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ async def create_dataset_question(
question_create: QuestionCreate,
current_user: User = Security(auth.get_current_user),
):
# TODO: Review this flow since we're putting logic here that will be used internally by the context
# Fields and questions are required to apply validations.
dataset = await _get_dataset_or_raise(db, dataset_id, with_fields=True, with_questions=True)

await authorize(current_user, DatasetPolicyV1.create_question(dataset))
Expand Down

0 comments on commit cfb72e5

Please sign in to comment.