-
Notifications
You must be signed in to change notification settings - Fork 663
Addresses #2969 #2980
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Addresses #2969 #2980
Conversation
|
This seems fine but I'm not equipped to confirm whether this is correct, so I'm going to remove myself as a reviewer. (And it sounds like this PR is still essentially in progress). |
jsdt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't set up a good way to run integration tests yet, but I manually tested that I the client can call a reducer that uses ScheduleAt in an argument, and it can query the rows from a schedule table.
# Description of Changes We want to release #2980 for the TS SDK, so I'm bumping our version number. # API and ABI breaking changes None # Expected complexity level and risk 1 # Testing None, just a version bump. Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
# Description of Changes The `ScheduleAt` type appears to have an outdated structure. I've updated the structure of the `ScheduleAt` type represented in TypeScript to be in line with the Rust type: https://docs.rs/spacetimedb/latest/spacetimedb/enum.ScheduleAt.html Namely, we were missing the inner Spacetime library types of `TimeDuration` and `Timestamp`. This is to address #2969. # API and ABI breaking changes This is an API breaking change in that it changes the API, but it's breaking in that it fixes a bug. # Expected complexity level and risk 2 # Testing I have not done additional testing, but I thought I would get this PR started to make it easier for the next person who comes along. The ideal automated test to add would be one which connects a TypeScript client to a SpacetimeDB module with a scheduled table, and verifies that the type is correctly deserialized and represented in TypeScript when the rows are sent down. --------- Co-authored-by: Jeffrey Dallatezza <jeffreydallatezza@gmail.com>
# Description of Changes We want to release #2980 for the TS SDK, so I'm bumping our version number. # API and ABI breaking changes None # Expected complexity level and risk 1 # Testing None, just a version bump. Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
# Description of Changes The `ScheduleAt` type appears to have an outdated structure. I've updated the structure of the `ScheduleAt` type represented in TypeScript to be in line with the Rust type: https://docs.rs/spacetimedb/latest/spacetimedb/enum.ScheduleAt.html Namely, we were missing the inner Spacetime library types of `TimeDuration` and `Timestamp`. This is to address #2969. # API and ABI breaking changes This is an API breaking change in that it changes the API, but it's breaking in that it fixes a bug. # Expected complexity level and risk 2 # Testing I have not done additional testing, but I thought I would get this PR started to make it easier for the next person who comes along. The ideal automated test to add would be one which connects a TypeScript client to a SpacetimeDB module with a scheduled table, and verifies that the type is correctly deserialized and represented in TypeScript when the rows are sent down. --------- Co-authored-by: Jeffrey Dallatezza <jeffreydallatezza@gmail.com>
# Description of Changes We want to release #2980 for the TS SDK, so I'm bumping our version number. # API and ABI breaking changes None # Expected complexity level and risk 1 # Testing None, just a version bump. Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
Description of Changes
The
ScheduleAttype appears to have an outdated structure. I've updated the structure of theScheduleAttype represented in TypeScript to be in line with the Rust type: https://docs.rs/spacetimedb/latest/spacetimedb/enum.ScheduleAt.htmlNamely, we were missing the inner Spacetime library types of
TimeDurationandTimestamp.This is to address #2969.
API and ABI breaking changes
This is an API breaking change in that it changes the API, but it's breaking in that it fixes a bug.
Expected complexity level and risk
2
Testing
I have not done additional testing, but I thought I would get this PR started to make it easier for the next person who comes along.
The ideal automated test to add would be one which connects a TypeScript client to a SpacetimeDB module with a scheduled table, and verifies that the type is correctly deserialized and represented in TypeScript when the rows are sent down.