Skip to content

Outdated proto/google/events/cloud/firestore/v1/data.proto #621

@pierophp

Description

@pierophp

The proto/google/events/cloud/firestore/v1/data.proto file does not work properly with the Firestore message.

Steps to reproduce

  1. Go to Cloud Run
  2. Write a Function
  3. Select the Runtime "Node 22"
  4. Add Trigger -> Firestore trigger
  5. Save Trigger
  6. Create
  7. Wait it to deploy
  8. Change any document on Firestore

The console.log provided in the example is broken. The entire object is incorrectly placed in the name field, as shown below:

Image

A binary file as base64 example:

CuUBCscBCngKDRILc351ZWxsby1wb2MSHgoGZHJpdmVyGhRLcnVQeWlGcWNIdGtDOEJRYlZ1bxIpChFpbl9wcm9ncmVzc19yb3V0ZRoUWlF6M0tEekVMT3F4ZFJreDVNQmwSHAoEam9icxoUNlNpcUdTS3lnU3RzbGd2UXA2dmMaDQoCaWQSBxDvkTiYAQEaIQoEZGVwcxIZShcKBxDtkTiYAQEKDIoBBjkxOTc5MJgBARoZCgZzdGF0dXMSD4oBCWJsb2NrZWQxM5gBASoMCJO2urwGEJj66LUDMgsIufvcugYQoMXwDhLlAQrHAQp4Cg0SC3N+dWVsbG8tcG9jEh4KBmRyaXZlchoUS3J1UHlpRnFjSHRrQzhCUWJWdW8SKQoRaW5fcHJvZ3Jlc3Nfcm91dGUaFFpRejNLRHpFTE9xeGRSa3g1TUJsEhwKBGpvYnMaFDZTaXFHU0t5Z1N0c2xndlFwNnZjGg0KAmlkEgcQ75E4mAEBGiEKBGRlcHMSGUoXCgcQ7ZE4mAEBCgyKAQY5MTk3OTCYAQEaGQoGc3RhdHVzEg+KAQlibG9ja2VkMTKYAQEqDAiZsbq8BhCYjbGOAzILCLn73LoGEKDF8A4aCAoGc3RhdHVz

Using protoc to show the structure:

echo "BASE64_STRING" | base64 -d > message.bin
protoc --decode_raw < message.bin

It show this structure:

1 {
  1 {
    1 {
      1 {
        2: "s~uello-poc"
      }
      2 {
        1: "driver"
        3: "KruPyiFqcHtkC8BQbVuo"
      }
      2 {
        1: "in_progress_route"
        3: "ZQz3KDzELOqxdRkx5MBl"
      }
      2 {
        1: "jobs"
        3: "6SiqGSKygStslgvQp6vc"
      }
    }
    3 {
      1: "id"
      2 {
        2: 919791
        19: 1
      }
    }
    3 {
      1: "deps"
      2 {
        9 {
          1 {
            2: 919789
            19: 1
          }
          1 {
            17: "919790"
            19: 1
          }
        }
      }
    }
    3 {
      1: "status"
      2 {
        17: "blocked13"
        19: 1
      }
    }
  }
  5 {
    1: 1737399059
    2: 918175000
  }
  6 {
    1: 1733770681
    2: 31204000
  }
}
2 {
  1 {
    1 {
      1 {
        2: "s~uello-poc"
      }
      2 {
        1: "driver"
        3: "KruPyiFqcHtkC8BQbVuo"
      }
      2 {
        1: "in_progress_route"
        3: "ZQz3KDzELOqxdRkx5MBl"
      }
      2 {
        1: "jobs"
        3: "6SiqGSKygStslgvQp6vc"
      }
    }
    3 {
      1: "id"
      2 {
        2: 919791
        19: 1
      }
    }
    3 {
      1: "deps"
      2 {
        9 {
          1 {
            2: 919789
            19: 1
          }
          1 {
            17: "919790"
            19: 1
          }
        }
      }
    }
    3 {
      1: "status"
      2 {
        17: "blocked12"
        19: 1
      }
    }
  }
  5 {
    1: 1737398425
    2: 835471000
  }
  6 {
    1: 1733770681
    2: 31204000
  }
}
3 {
  1: "status"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: eventarcIssues related to the googleapis/google-cloudevents API.externalThis issue is blocked on a bug with the actual product.priority: p2Moderately-important priority. Fix may not be included in next release.status: blockedResolving the issue is dependent on other work.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