Skip to content

Datastore: Update Indexes for Actions #612

@ao-david

Description

@ao-david

To be able to use the queries which we are using for actions, we need to update the indexes. This can be seen from the error from running the tests on the cloud in ausoceantv:

--- FAIL: TestModelInCloudStore (7.28s)
    --- FAIL: TestModelInCloudStore/Action (1.08s)
        --- FAIL: TestModelInCloudStore/Action/GetActionsBySubscriber_[Limit=1] (0.08s)
            model_test.go:576: unable to get actions by subscriber: unable to get all actions for subscriber: rpc error: code = FailedPrecondition desc = no matching index found. recommended index is:
                - kind: Action
                  properties:
                  - name: SubscriberID
                  - name: Time
            model_test.go:580: expected one action, got 0
        --- FAIL: TestModelInCloudStore/Action/GetActionsByType (0.07s)
            model_test.go:590: unable to get actions by type: unable to get all actions by type: rpc error: code = FailedPrecondition desc = no matching index found. recommended index is:
                - kind: Action
                  properties:
                  - name: Type
                  - name: Time
            model_test.go:594: expected two actions, got 0
FAIL
exit status 1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions