-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: iconVersionId wrong encode decode (#156)
* add Icon {proto,schema} and {encode,decode}-conversions * Update src/lib/decode-conversions.ts Co-authored-by: Gregor MacLennan <gmaclennan@digital-democracy.org> * Update proto/icon/v1.proto Co-authored-by: Gregor MacLennan <gmaclennan@digital-democracy.org> * reverted icon/v1.proto PixelDensity enum in protobufs, enums need to start at 0, so we can't align the numbers... * remove unnecessary type casting, add tests * call pixelDensity x1,x2,x3 on proto * encode `blobVersionId` as utf-8 since we have slashes * merge fix * make icon `blobVersionId` a struct with {coreId,index} * fix missing `/${index}` on fixture of Icon.blobVersionId * add check to blobVersionId Co-authored-by: Gregor MacLennan <gmaclennan@digital-democracy.org> --------- Co-authored-by: Tomás Ciccola <tciccola@digital-democracy.com> Co-authored-by: Gregor MacLennan <gmaclennan@digital-democracy.org>
- Loading branch information
1 parent
c0d7b6f
commit 17655d0
Showing
6 changed files
with
15 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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