retracedhq/retraced

Add support to have a field with string: string[], useful for examples to store roles

Closed this issue · 3 comments

Describe the problem/challenge you have

[A description of the current limitation/problem/challenge that you are experiencing.]

Describe the solution you'd like

[A clear and concise description of what you want to happen.]

Anything else you would like to add:

[Miscellaneous information that will assist in solving the issue.]

Environment:

  • Retraced version:
  • SDK:

Maybe we could just ask users to repurpose fields (key, value of type string/string) and stringify the array instead of introducing another attribute that supports arrays as value. Changing fields is tricky because we use it for calculating the digest of the log.

We are getting requests to store custom attributes but with indexing. So might be a good idea to add a new attribute (similar to fields) but that gets indexed and supports string and array of strings.

comma separated values in fields are tokenised and indexed now so we don't need to support arrays as a special case.