Skip to content

Serializer validation errors missing a valid data pointer #13

@TomaszChrosniak

Description

@TomaszChrosniak

If an atomic operation raises an error, it is currently not handled by the atomic_operations.views.AtomicOperationsView. The error that bubbles up loses any context regarding which operation failed.

I believe this should be handled here, where the index of the operation is in scope.

self.handle_sequential(serializer, operation_code)

Instead, self.handle_sequential(...) calls serializer.is_valid(raise_exception=True) without handling the exception and putting the additional context in (I saw in other places there are data pointers in the form of pointer=f"{ATOMIC_OPERATIONS}/{idx}/data" being passed into the error detail).

Currently looking at how to handle it (extending the AtomicOperationsView), but I'm relatively new to the project so might not find an optimal solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions