Open
Conversation
- RawEvent is now a standalone struct with custom MarshalJSON/UnmarshalJSON that handles both "data" and "data_base64" per CloudEvents JSON spec, including round-trip preservation and MIME-based wire form selection. - CloudEvent[A] stores data_base64 opaquely without decoding; consumers decide how to handle it. - Simplify unmarshalCloudEventWithPayload by using the cloudEventHeader type alias for known fields instead of per-field deserialization. - Replace headerToMap helper with sjson for consistent header serialization. - Add BytesForSignature and IsJSONDataContentType helpers. - Reject events with both "data" and "data_base64" present. - Add comprehensive positive and negative tests for all new behavior. BREAKING: RawEvent changed from type alias to standalone struct. Co-authored-by: Cursor <cursoragent@cursor.com>
Add data_base64 support and simplify CE JSON marshaling
Bumps the go-mod group with 4 updates: [github.com/ClickHouse/clickhouse-go/v2](https://github.com/ClickHouse/clickhouse-go), [github.com/DIMO-Network/clickhouse-infra](https://github.com/DIMO-Network/clickhouse-infra), [github.com/DIMO-Network/model-garage](https://github.com/DIMO-Network/model-garage) and [github.com/ethereum/go-ethereum](https://github.com/ethereum/go-ethereum). Updates `github.com/ClickHouse/clickhouse-go/v2` from 2.40.1 to 2.43.0 - [Release notes](https://github.com/ClickHouse/clickhouse-go/releases) - [Changelog](https://github.com/ClickHouse/clickhouse-go/blob/main/CHANGELOG.md) - [Commits](ClickHouse/clickhouse-go@v2.40.1...v2.43.0) Updates `github.com/DIMO-Network/clickhouse-infra` from 0.0.5 to 0.0.7 - [Release notes](https://github.com/DIMO-Network/clickhouse-infra/releases) - [Commits](DIMO-Network/clickhouse-infra@v0.0.5...v0.0.7) Updates `github.com/DIMO-Network/model-garage` from 0.7.2 to 0.8.7 - [Release notes](https://github.com/DIMO-Network/model-garage/releases) - [Commits](DIMO-Network/model-garage@v0.7.2...v0.8.7) Updates `github.com/ethereum/go-ethereum` from 1.16.3 to 1.16.4 - [Release notes](https://github.com/ethereum/go-ethereum/releases) - [Commits](ethereum/go-ethereum@v1.16.3...v1.16.4) --- updated-dependencies: - dependency-name: github.com/ClickHouse/clickhouse-go/v2 dependency-version: 2.43.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-mod - dependency-name: github.com/DIMO-Network/clickhouse-infra dependency-version: 0.0.7 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-mod - dependency-name: github.com/DIMO-Network/model-garage dependency-version: 0.8.7 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-mod - dependency-name: github.com/ethereum/go-ethereum dependency-version: 1.16.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-mod ... Signed-off-by: dependabot[bot] <support@github.com>
987b5b7 to
b20caf2
Compare
4c9f4cb to
fe79f0e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps the go-mod group with 4 updates: github.com/ClickHouse/clickhouse-go/v2, github.com/DIMO-Network/clickhouse-infra, github.com/DIMO-Network/model-garage and github.com/ethereum/go-ethereum.
Updates
github.com/ClickHouse/clickhouse-go/v2from 2.40.1 to 2.43.0Release notes
Sourced from github.com/ClickHouse/clickhouse-go/v2's releases.
... (truncated)
Changelog
Sourced from github.com/ClickHouse/clickhouse-go/v2's changelog.
... (truncated)
Commits
807d28fUpdate release noteseea760bMerge pull request #1761 from ClickHouse/kavirajk/qbit-support103749cMerge branch 'main' into kavirajk/qbit-support86979caMerge pull request #1758 from ClickHouse/kavirajk/fix-scantype-time-type8bf170bchore: upgrade ch-go7f5cf4cchore: upgrade ch-go4020c0achore: fix the duration precision bug on testded8b36fix: add test to lock the behavior of how time64 sent to server427aa07fix: fix ColTime64 AppendRow api for precision correctnessa9857aachore: removed commented testsUpdates
github.com/DIMO-Network/clickhouse-infrafrom 0.0.5 to 0.0.7Release notes
Sourced from github.com/DIMO-Network/clickhouse-infra's releases.
Commits
3a093c7fix: default timeoutf867222feat: add timeout configUpdates
github.com/DIMO-Network/model-garagefrom 0.7.2 to 0.8.7Release notes
Sourced from github.com/DIMO-Network/model-garage's releases.
... (truncated)
Commits
807028ffix: handle missing event signals in ruptela DecodeEvent (#227)4b57793Merge pull request #226 from DIMO-Network/intg-1917-signal-mapping-r1-can-sig...5d0dc00All signals mapped2b1df71Drop fingerprint cloud event payload type in case of 0s for smart5 (#225)5b2c0e5Support CAN VIN source fileds 123-125 (#224)3de9d2eFuelTypeName mapping; IO99 (#222)6b90255Engine Block Mapping, IO405 (#221)4da77e0Removing a migration (#220)2d759a0Updating window changes (#219)b61c5a9Signal state migrations (#217)Updates
github.com/ethereum/go-ethereumfrom 1.16.3 to 1.16.4Release notes
Sourced from github.com/ethereum/go-ethereum's releases.
... (truncated)
Commits
41714b4Merge branch 'master' into release/1.16b964b65version: release go-ethereum v1.16.4 stable0977a02params: schedule Osaka/BPO1/BPO2 for testnets (#32735)7d8ccddall: refactor to use builtin max/min (#32694)bacc150core/txpool: add eip2681 check for incoming transactions (#32726)ad484fcbuild: upgrade to execution-spec-tests v5.1.0 (#32742)89158aacore/txpool/blobpool: convert and add one-by-one (#32718)965ffffall: add bpo1 and bpo2 overrides (#32737)7611f35accounts/abi/bind: fix data race in TestWaitDeployedCornerCases (#32740)1c706d1accounts/keystore: use ticker to avoid timer allocations (#32732)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore <dependency name> major versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)@dependabot ignore <dependency name> minor versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)@dependabot ignore <dependency name>will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)@dependabot unignore <dependency name>will remove all of the ignore conditions of the specified dependency@dependabot unignore <dependency name> <ignore condition>will remove the ignore condition of the specified dependency and ignore conditions