Empty fields should be nulls

Created on 11 August 2024, 5 months ago

Problem/Motivation

If you try to index an entity that has a null value in a string field that is setup as an Azure string data type, you get:
The request is invalid. Details: Cannot convert the literal 'False' to the expected type 'Edm.String'.

Proposed resolution

The problem is the use of php's end function in the document param builder. This function returns FALSE if called on an empty array, but we should be passing on a NULL to Azure in this case no a FALSE

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom jonathanshaw Stroud, UK

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024