Skip to content

[Feature] Add SDK support for ignoring errors on duplicate writes or missing deletes #268

@dyeam0

Description

@dyeam0

Checklist

Describe the problem you'd like to have solved

There are significant developer pain points when errors are received from the following operations:

  • Writing a tuple that already exists
  • Deleting a tuple that does not exist

Additional logic for error handling must be implemented to avoid or correct the situation, adding unnecessary complexity to client-side code and adding time required to complete operations due to retry scenarios.

Describe the ideal solution

OpenFGA v1.10.0 introduced support in the API for ignoring errors during duplicate writes (using the on_duplicate API property) and missing deletes (using the on_missing API property). The API solution is described in the OpenFGA roadmap item openfga/roadmap#79.

The SDK needs to add equivalent support. Refer to openfga/sdk-generator#610 for additional solution description.

Alternatives and current workarounds

No response

References

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions