Skip to content

Commit

Permalink
fix: Allow querying of 9th, 19th, 29th, etc collections (#2819)
Browse files Browse the repository at this point in the history
## Relevant issue(s)

Resolves #2810

## Description

Allows querying of 9th, 19th, 29th, etc collections.

The fetcher calls `PrefixEnd` which causes the start prefix to be (e.g.)
`"/9"` and the end `"/10"` causing nothing to be returned to the user.
This PR fixes that by encoding the DataStore CollectionRootIDs as
variable sized BigEndians.

#2818 has been broken out
of this as it is not a user-visible issue atm and resolving it is a bit
more involved due to some legacy tech. debt.
  • Loading branch information
AndrewSisley authored Jul 9, 2024
1 parent 24fa14f commit 1acc084
Show file tree
Hide file tree
Showing 9 changed files with 789 additions and 475 deletions.
3 changes: 3 additions & 0 deletions docs/data_format_changes/i2810-allow-query-of-nth-cols.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Allow querying of 9th, 19th, 29th, etc collections

The way collection root id was encoded in the datastore has changed from a human friendly string representation to a variable-size, big endian, machine-friendly representation.
Loading

0 comments on commit 1acc084

Please sign in to comment.