Make new Uuid type Filterable#3991
Conversation
|
Thank you for the submission. Unfortunately this is not sufficient to be able to merge this. We would need to implement this in:
It's important that we keep the various languages consistent with the features they support except in rare scenarios. |
|
I can look into it today and/or tomorrow and let you know if i can get it to work :) |
|
@gefjon Thank you again for the list you provided in #4024 I believe Uuid was designed for this in the first place and no further changes are necessary in this case. Hence only Rust cant Please let me know if the following argumentation is lacking and/or there is something missing still:
2.TS Ordering Comparable
As i said before please let me know if this is still to little confidence in the pr preferably with concrete todo items :> Thanks for reading and considering guys <3 |
|
Oh, you're right, everything is done except the impl. Thanks for checking that all out for us. |
|
Hey @kistz , it looks like some of the tests are failing - can you investigate? |
|
Yes i can investigate (probably have time somewhen on friday) 👍 |
|
Excellent, thank you 🙌 |
|
@bfops got to it sooner than expected :> I think the test failling is because of a expected change in the ui tests. Im not sure what action i must take in this case ^^ e.g. if im responsible to update the UI tests or which command to use in that cas 🥴 Some info would be useful or in case where you can do it feel free to do so 👍 Here is also the git diff when looking at the failed ui diff: |
|
@kistz when running the test locally, somewhere in the tree you should get a new file with the new output. I think, but am not confident, that in your case this will be |
Head branch was pushed to by a user without write access
|
@gefjon should be hopefully good now! Thanks a lot to zeke, tyler and you for guiding me through this 👍 :> Have a good day ahead! |
af4d3f3






Description of Changes
Uuidaddad in the last update is not filterable even though it isCopyand (imo) obviously very suited to filter.Promote it to a special
FilterableValuein the same way asIdentityand adjust the docs.API and ABI breaking changes
None
Expected complexity level and risk
Identitywhich is also a newtype wrapper around a integer likeUuidTesting
Tested on my project.
After the change:

Before the change:

You can also test this yourself when adding:
spacetimedb = { version = "1.11.2", git = "https://github.com/kistz/SpacetimeDB.git", branch = "uuid-as-filter" }to your cargo.toml project