Skip to content

Comments

Impl for Programmatic JSON deserializer#747

Merged
jakrawcz-rdx merged 1 commit intofeature/browse_apifrom
infra/programmatic_json_deserializer
Dec 1, 2023
Merged

Impl for Programmatic JSON deserializer#747
jakrawcz-rdx merged 1 commit intofeature/browse_apifrom
infra/programmatic_json_deserializer

Conversation

@jakrawcz-rdx
Copy link
Contributor

⚠️ This builds on top of #744 and ultimately wants to merge into feature/browse_api (not develop!).

This is in the "Browse API" PR-chain, but actually it is a pretty generic feature:

  • Implemented Programmatic JSON deserializer
    • We need it now (yeah for Browse API), and Engine does not offer one (they only serialize)
    • The impl is stolen from RET (and then heavily adjusted for Node's specifics; but not beyond recognition)
    • The plan is to either move this impl to Engine (or implement the same on the Engine's side), and we'll then be able to remove this code from Node (and maybe even from RET?)
  • created the Programmatic JSON serializer facade
    • Just so that it can live next to the deserializer
    • ofc it is only facading the Engine's serialization impl
    • it is used to test the deserializer for compatibility with Engine's serializer (the "round-trip codec test")

Note: The serializer facade is used right away, but the deserializer is currently unused (and rightfully produces warnings) [except in tests]; it will soon be used by Browse API's "lookup kv store/collection" endpoints.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Base automatically changed from feature/browse_blueprint_info to feature/browse_api December 1, 2023 10:34
@jakrawcz-rdx
Copy link
Contributor Author

I am merging all these PRs into long-lived feature/browse_api (since it becomes too cumbersome to track the long PR dep chain)

@jakrawcz-rdx jakrawcz-rdx merged commit 4144f79 into feature/browse_api Dec 1, 2023
@jakrawcz-rdx jakrawcz-rdx deleted the infra/programmatic_json_deserializer branch December 1, 2023 10:35
jakrawcz-rdx added a commit that referenced this pull request Dec 1, 2023
⚠️ This builds on top of
#747 (relies on the
programmatic JSON deserialization support introduced there) and
ultimately wants to merge into `feature/browse_api` _(not `develop`!)_.

This implements
[https://radixdlt.atlassian.net/wiki/spaces/RPNV1/pages/3189211214/RNP-12+-+Browse+API+sub-API+within+Core+API#3.-Blueprint-Details
.](https://radixdlt.atlassian.net/wiki/spaces/RPNV1/pages/3189211214/RNP-12+-+Browse+API+sub-API+within+Core+API#8.-KVStore-Collection-Lookup)
.

(with all the infra already provided by the previous Browse API PRs,
this one is actually trivial)
(the only other remaining endpoint, `/browse/object/collection/entry`,
should be trivial based on this one)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant