Skip to content

datastore: array property always has NoIndex false #7726

@aaron0x

Description

@aaron0x

Client

datastore

Go Environment

go version go1.20.2 darwin/arm64

Code
Entity's array property always has NoIndex false, even the data in datastore has excludeFromIndexes true for each array values.

from chrome devtool, the datastore api response is

"property1": {
  "arrayValue": {
    "values": [
      {
        "stringValue": "yo",
        "excludeFromIndexes": true
      }
    ]
  }
}

but client.Get still fills dst with NoIndex false

Expected behavior

NoIndex should be true

fix for the issue #7674

Metadata

Metadata

Assignees

Labels

api: datastoreIssues related to the Datastore API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions