Skip to content

Stringified UUID-based DS keys should not be wrapped in JSON #144

Open

Description

@yuri-sergiichuk

Some of the kind keys, e.g. InboxMessage kind key, use UUID as the key value, but they do store the key value as Stringified JSON message in the storage, e.g.: spine.server.delivery.InboxMessage name:{"uuid":"4c16b7d2-06ff-4280-ba0e-14ffdb9aff3a"}

The problem with such a key format is that any key has the same prefix "uuid":" which clashes with the Datastore best practices.

The better solution here is to use only the UUID value: 4c16b7d2-06ff-4280-ba0e-14ffdb9aff3a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions