Old id format
I think a setting in the Convex Dashboard like "Legacy Ids" would be helpful simply for displaying the Id id in the table without having to open it up. I am using a pre-0.17.0 version of Convex because the breaking change with the Id object would be too risky to try to fix with the size of my codebase and I am finished with the project.
8 Replies
Hi Varun, we are likely not to build something like this for a deprecated feature. At some point we’d love to remove support in our backend for this pre-1.0 feature entirely.
Seems like we haven’t made it as easy as it could be to help you convert your code base. I’d love to hear more about how you’re using old ids that would makes this hard.
If it helps, me or someone on our team can hop on a call with you to help understand your needs. Let me know if you’d like that and one of us can send you a DM to schedule a time.
@Varun Singh is your typeracer open source? if so maybe we can just send you a PR 😄
Thank you Indy and Jamie! The main way I’m using the IDs is taking the string from the browser query string and then converting it to an Id object in the Convex function.
My fear is not so much the dependency on the Id object but that if I do a find and replace the number of bugs it will create which I won’t know about without rigorously testing every feature and edge case in the game.
I hear you. the issue is that old ids will break sometime soon, so this is project worth taking on at some point
the convex backend runtime supports both for now, but this won't last too much longer
Yeah I get that
Does the new format let you check table name? I have a check for this in one or two places
https://discord.com/channels/1019350475847499849/1122933700099833984/1122933700099833984
that thread has some details on what's currently possible
they can definitely be casted back and forth to strings
but... acc'd to sarah's answer here: https://discord.com/channels/1019350475847499849/1122933700099833984/1122935171759493160
looks like on the client you cannot yet validate they belong to a particular table
So would I be able to work around this with db.normalizeTable?
But anyway I would very much appreciate a call either with you, Indy, or someone else on the Convex team so I can clarify how I can convert to the new format without introducing a lot of bugs. The GitHub repo is https://GitHub.com/LMHSCodingClub/tug-of-type
GitHub
GitHub - LMHSCodingClub/tug-of-type: An online multiplayer type rac...
An online multiplayer type racing game with an original tug mode feature - GitHub - LMHSCodingClub/tug-of-type: An online multiplayer type racing game with an original tug mode feature