Commit Graph

3186 Commits

Author SHA1 Message Date
George Kulakowski c0a35097f7 Remove unused RelationalDB::table_exist (#236)
This was identical to table_id_by_name anyway, and nothing uses this.
2023-08-25 14:13:14 -04:00
Noa 8d65acf0cc [rust-sdk]: gracefully close websocket (#228)
* [rust-sdk]: gracefully close websocket

* Free function `disconnect`; don't remove runtime handle (#234)

---------

Co-authored-by: Phoebe Goldman <phoebe@clockworklabs.io>
2023-08-25 09:01:24 -04:00
Kim Altintop a3b6b6b065 Ensure legacy DomainName can be deserialized from JSON (#208) 2023-08-25 09:21:09 +02:00
George Kulakowski 22508c7746 Install cargo-chef with --locked (#237)
We want to use the Cargo.lock file to use exactly the specified
dependencies. Without this, versions of some (possibly transitive)
dependenencies can advance, and in particular advance past the point
of supporting our currently pinned rust toolchain.
2023-08-24 20:10:46 +00:00
Piotr Sarnacki f1406e42b0 Cloud related fixes (#218)
* Remove unused datastore traits

We previously anticipated factoring the database in such a way that
the typed vs untyped distinctions, and the transactional vs not,
semantics would be more visible. We have not used these distinctions
and no longer need to expose these traits.

* Fix recovery of sequences after restart

* Debug

* More debug logs

* Export more tyeps

* More debug info and small changes

* More logs

* Change waiting on messages from client to be async

* Remove some trace lines

* Revert "Fix recovery of sequences after restart"

This reverts commit eef0089b78.

* Remove more trace lines

* cargo fmt

* clippy

---------

Signed-off-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
Co-authored-by: George Kulakowski <george@clockworklabs.io>
Co-authored-by: Mario Alejandro Montoya Cortés <mamcx@elmalabarista.com>
Co-authored-by: Tyler Cloutier <cloutiertyler@aol.com>
Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
2023-08-24 10:40:03 -07:00
joshua-spacetime e72b8f3d1b perf(datastore): disable fsync mode by default (#221) 2023-08-23 18:22:53 -07:00
John Detter 093c4b8e6c Fix broken windows build (#227)
Co-authored-by: Boppy <no-reply@boppygames.gg>
2023-08-23 21:59:31 +00:00
Piotr Sarnacki 90db30e523 Build the Docker image only on the main branch (#195) 2023-08-23 20:54:49 +02:00
Kim Altintop e29cb678a2 Provide serialization for Result (#210) 2023-08-23 12:03:52 +02:00
Mario Montoya 68b9536822 Separate the global location of files per OS & create a configuration trait to read them (#171)
* Install from source instructions

* Improved comment

* Separate the global location of files per OS & create a configuration trait to read them

---------

Co-authored-by: Boppy <no-reply@boppygames.gg>
2023-08-22 23:51:18 +00:00
George Kulakowski 66a8f22e94 Remove the bitrotted trace replay functionality (#219)
* Remove the bitrotted trace replay functionality

* cargo fmt

* Remove unused tracelogging feature from ci actions

* Remove unneeded clone
2023-08-22 21:29:05 +00:00
Kim Altintop 8fd69583ea Fix SpacetimeType for Address (#209) 2023-08-22 21:26:11 +02:00
Phoebe Goldman 0badd5dd1e Add identity/:id/verify route to verify identity/token pairs (#155)
This commit adds a new route to the `/identity` HTTP block,
`/identity/:identity/verify`,
which requires a SpacetimeDB auth header.

If the token in the authorization header is valid
and corresponds to the identity in the path,
it returns `NO_CONTENT`.

If the token in the authorization header is valid
but does not correspond to the identity in the path,
it returns `BAD_REQUEST`.

If the token in the authorization header is invalid or unsupplied,
it returns `UNAUTHORIZED`.
2023-08-22 10:39:30 -04:00
John Detter 8eb1743b75 Better Version Logging (#206)
* Added path to `spacetime version`, added version and path to `spacetime
start`

* Removed comment

---------

Co-authored-by: Boppy <no-reply@boppygames.gg>
2023-08-21 14:00:32 -05:00
George Kulakowski aa9a8452d1 Add an option for ABI breaks to the PR template (#213) 2023-08-21 10:49:31 -07:00
Ingvar Stepanyan 9b92bbf3d4 Fix ABI check for module with split data (#197) 2023-08-21 15:50:09 +00:00
John Detter bf7b4b5806 Before, we were being limited to just 30 results. This impl will (#207)
paginate so that all members are returned

Co-authored-by: Boppy <no-reply@boppygames.gg>
2023-08-21 10:12:09 -05:00
joshua-spacetime 6dc3030e70 Add SPACETIMEDB_TRACY to dev environment (#200) 2023-08-18 15:06:26 -07:00
Piotr Sarnacki 219c3b6c7f Fix auth in the browser (#20)
At the moment when we authenticate with the short-lived token we also
get the short lived token back. In order to not give it back to the
application let's just ignore the identity message token if we already
got one
2023-08-17 21:43:02 +02:00
Piotr Sarnacki 14366091c8 Bump version to 0.6.1 2023-08-17 01:48:29 +02:00
dbrinkmanncw 24ed99b7e0 Fix bsatn serialization. It was adding an extra 0 to the end of the buffer, this causes a bug in C# module implementation which actually validates the length (#19) 2023-08-17 01:48:18 +02:00
John Detter 0f1fdf62d0 Upgrade contributor check perms (#194)
* Upgraded read permissions for contributor check

* Bug fix

* Another fix

* Changed secret that's used

---------

Co-authored-by: Boppy <no-reply@boppygames.gg>
2023-08-16 09:48:57 -07:00
John Detter 4ebbc514df Contributor Check CI (#192)
* Added contributor check

* Bump node version

* Added node-fetch

* Another fix

* Bug fix

* Give action a real name

* Added name for docker build

* Rename

* Fixed name so they match

---------

Co-authored-by: Boppy <no-reply@boppygames.gg>
2023-08-15 21:34:01 -05:00
Tyler Cloutier ad8694bee8 Update LICENSE.txt
Signed-off-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
2023-08-12 18:36:29 -07:00
Tyler Cloutier be1c1f4858 Fixed publish crates script 2023-08-12 18:31:34 -07:00
Tyler Cloutier 970c46e082 Fixed issue with docker-compose 2023-08-12 17:51:29 -07:00
John Detter a628f88db1 Fix Docker Build (#181)
* Upgrade chef

* Fix for QUIC issue

* Make version consistent

* Don't install rustup its not needed

* Added note

---------

Co-authored-by: Boppy <no-reply@boppygames.gg>
2023-08-12 09:00:17 -07:00
dbrinkmanncw e65cb89f25 Python sdk was assuming table members and reducer names were in Snake case. This converts them for the c# modules where public members are generally camel case. (#166) 2023-08-12 08:58:00 -07:00
John Detter 116bdee090 Version upgrade to 0.6.1 (#180)
* Version upgrade to 0.6.1

* Upgrade version used by CLI

---------

Co-authored-by: Boppy <no-reply@boppygames.gg>
2023-08-12 08:56:28 -07:00
Mario Montoya f0f33872a9 Fix nit (#178) 2023-08-12 08:56:13 -07:00
Mario Montoya 80a0a29704 Move cargo deps to the workspace (#172)
* Moving deps to workspace

* Merge
2023-08-11 15:24:31 -07:00
George Kulakowski 65d96f9a35 Fix some insertion and deletion state transitions (#167)
* Fix some insertion and deletion state transitions

This also adds a test reproducing the update-then-iterate bug as
originally reproduced from bitcraft.

* Remove the validation code for now

* Add comments

* Remove unneeded &mut in tests

* Make the corresponding change for delete as well
2023-08-11 15:01:03 -07:00
Kim Altintop 5bdd0b9a17 sdk: Lower client cache log severities (#162)
* sdk: Lower client cache log severities

In particular, avoid logging entire rows above `trace`.
2023-08-10 19:36:45 +02:00
John Detter 22e1af8b26 Install from source instructions (#170)
* Install from source instructions

* Improved comment

---------

Co-authored-by: Boppy <no-reply@boppygames.gg>
2023-08-10 12:23:58 -05:00
Phoebe Goldman ebc9185d74 [SDK] Add cursive-chat example (#152)
A more fleshed-out client for the quickstart-chat module,
with a Cursive-based TUI.
2023-08-10 11:43:03 -04:00
Kim Altintop d011c6815c More compact representation of DomainName (#163)
* More compact representation of `DomainName`

* Apply suggestions from code review

---------

Signed-off-by: Kim Altintop <kim@eagain.io>
Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
2023-08-10 12:20:13 +02:00
Kim Altintop 99f876ba6c Return parsed DomainName alongside Address when resolving NameOrAddress (#161)
* Return parsed `DomainName` alongside `Address` when resolving `NameOrAddress`

Helps to avoid repeatedly parsing `DomainName`, and to simplify the
`/database/publish` handler (not included in this patch).
2023-08-10 11:31:07 +02:00
Kim Altintop 262d8516f3 Allow smoke tests to opt out of docker (#154)
Depending on setup, `docker logs` output is not always that useful. E.g.
on CI or when running a server outside of docker for faster turnaround.
2023-08-10 10:47:13 +02:00
Kim Altintop 5da7ad2064 Terminate background smoke tests on exit (#153)
* Terminate background smoke tests on exit
2023-08-10 10:33:59 +02:00
Tyler Cloutier 0cf930817b Update LICENSE.txt
Signed-off-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
2023-08-09 19:10:33 +02:00
George Kulakowski 5529db6ee7 Remove unused datastore traits (#157)
We previously anticipated factoring the database in such a way that
the typed vs untyped distinctions, and the transactional vs not,
semantics would be more visible. We have not used these distinctions
and no longer need to expose these traits.
2023-08-09 09:20:39 -07:00
Ingvar Stepanyan ba628075a6 Point C# to API reference for now (#164) 2023-08-09 14:00:43 +00:00
Tyler Cloutier a5f34a8a1a Added another link to the website
Signed-off-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
2023-08-09 15:44:38 +02:00
Kim Altintop 537b3c7e33 Implement Display for NameOrAddress (#160)
Mainly for debugging, but hesitant to override the `Debug` impl for
`Address` with the hex representation.
2023-08-09 11:55:32 +02:00
Kim Altintop 72893f82e3 Fix serde impls for Address + add some tests (#159)
serde::Serialize and serde::Deserialize were not symmetric. Also, add some roundtrip tests to guard against regressions.
2023-08-09 11:55:05 +02:00
John Detter dec295586d Default command is to start (#149)
Co-authored-by: Boppy <no-reply@boppygames.gg>
2023-08-08 12:57:23 -05:00
dbrinkmanncw 1003db20f8 Commit quickstart example (#44)
* Commit quickstart example

* GetHashCode fix for Identity.cs

* Remove SDK from quickstart project and add nuget package. Rename spacetime_types folder to module_bindings

---------

Co-authored-by: Derek Brinkmann <dbrinkmann@citadelstudios.net>
2023-08-08 13:50:00 -04:00
George Kulakowski 9b7f1adf84 Move energy budget reporting to log::trace! (#140) 2023-08-08 09:48:26 -07:00
dbrinkmanncw be952292b5 Fix reducer event argument being undefined if the reducer fails. (#18) 2023-08-08 12:15:11 -04:00
Mario Montoya 45621c8909 Fix URL for the docker badge (#144) 2023-08-08 10:26:07 -05:00