Remove hard-coded record types #132
Labels
Clear labels
C:CLI
C:Crypto
C:Encoding
C:Proto
C:Types
Status: Stale
Type: ADR
Type: Build
Type: CI
Type: Docs
Type: Tests
bug
dependencies
docker
documentation
duplicate
enhancement
go
good first issue
help wanted
high priority
in progress
invalid
javascript
low priority
medium priority
question
urgent
wontfix
Copied from Github
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Something isn't working
Pull requests that update a dependency file
Pull requests that update Docker code
Improvements or additions to documentation
This issue or pull request already exists
New feature or request
Pull requests that update Go code
Good for newcomers
Extra attention is needed
currently working on
This doesn't seem right
Pull requests that update Javascript code
Further information is requested
Top priority issue
This will not be worked on
An issue or PR manually copied from GitHub.
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
The priority is critical
Priority
High
The priority is high
Priority
Low
The priority is low
Priority
Medium
The priority is medium
Reviewed
Confirmed
Issue has been confirmed
Reviewed
Duplicate
This issue or pull request already exists
Reviewed
Invalid
Invalid issue
Reviewed
Won't Fix
This issue won't be fixed
Status
Abandoned
Somebody has started to work on this but abandoned work
Status
Blocked
Something is blocking this issue or pull request
Status
Need More Info
Feedback is required to reproduce issue or to continue work
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cerc-io/laconicd-deprecated#132
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Record.Attributesfrom Any into a byte string and removes the hard-coded Protobuf record types.I built and deployed laconicd, built the new laconic-sdk, and then built the CLI to use the new SDK.
After all that, I am getting some errors:
What might I be doing wrong?
I deleted the existing registry data and recreated it from scratch, and I was able to get working responses. So apparently this is a completely breaking change for existing deployments. That's probably OK, just good to note.
I did see something quirky though. I am not sure if the is a CLI or server issue, but
laconic cns record listnow shows all records even when--allis not specified if no other filters are included.If any filter is included, it reverts to the old behavior and only shows results with names, unless
--allis set explicitly. This is rather confusing, but also comparatively minor.Other than the "all" issue mentioned above, LGTM, and I am fine if we just open an issue for that to be fixed later.
Since this is a breaking change, we probably want to merge it and the SDK PR and create new releases sooner rather than later, so that I can re-create the production registry deployment before it contains any valuable data.
On checking locally, I see that command
laconic cns record listwithout the--allflag returns all records even with previous laconicd and laconic-sdk versions (laconicd -9c240f1a0c152d74a4bea57bfd6af7f323d44b5c, laconic-registry-cli -6814707752c445ae9cfec9fd282a4f88adac08f8)