Commit Graph

3186 Commits

Author SHA1 Message Date
Noa d436b1f9b7 Followup to #2504 (#2534) 2025-03-31 23:52:56 +00:00
joshua-spacetime 20e92ced5a Feature gate #[client_visibility_filter] (#2528) 2025-03-31 23:15:24 +00:00
joshua-spacetime 6d3840aabe Add utility for rls resolution (#2519) 2025-03-31 22:37:05 +00:00
Noa a5212a5f75 Commitlog compression (#2504) 2025-03-31 22:00:52 +00:00
james gilles 1d0dc6da7b Fix C# SDK Tests (#2533) 2025-03-31 18:35:41 +00:00
Jeffrey Dallatezza 6577f8019c Update data size metrics periodically, not on every transaction. (#2532) 2025-03-31 18:12:47 +00:00
Jeffrey Dallatezza 64aef29d3c Add endpoints for heap profiling (#2517)
Co-authored-by: Zeke Foppa <196249+bfops@users.noreply.github.com>
2025-03-31 18:12:31 +00:00
Kim Altintop 8dfab1c09d commitlog: Open stream writer with metadata (#2530) 2025-03-31 17:25:39 +00:00
Zeke Foppa 4dca52fef3 CI - Make Test Suite check for dirty git diff (#2531)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-03-31 17:25:18 +00:00
james gilles 3543132c7d Fix for unsubscribe bug + regression tests (#264)
## Description of Changes

This PR fixes one issue and adds regression tests for it, plus another
issue. These regression tests are run on CI. You can also run them
locally -- run a local spacetime instance and then
`tools~/run-regression-tests.sh ../SpacetimeDB`).

### Issue 1: Unsubscribe is non-functional

See
https://github.com/clockworklabs/com.clockworklabs.spacetimedbsdk/issues/279.
This was a coding mistake made during the rush to 1.0. It was easily
fixed.

### Issue 2: Indexes not tracking deletes

This was recently discovered by the BitCraft team.

The problem was introduced in
https://github.com/clockworklabs/com.clockworklabs.spacetimedbsdk/commit/cefc727b7693fe97e3dd848fef2bb17bf20c8be6
which introduced `RemoteTableHandle<EventContext,
Row>.IndexBase<Column>`. This class stores a `Dictionary<Column,
List<Row>>` to allow fast filtering. It relies on `List<Row>.Remove` to
remove elements from a list when a row delete is received.
`List<Row>.Remove` relies on `Row.Equals` to determine when elements are
equal.

`Row.Equals` formerly was not implemented for `[SpacetimeDB.Type]`s or
for generated Row types. So, this didn't work.

Now it does: it was fixed by
https://github.com/clockworklabs/SpacetimeDB/pull/239 . So all this PR
does to address this issue is add a regression test.

## API

 - [x] This is an API breaking change to the SDK

The interface IDbConnection was changed; however, this changed part of
the interface is `internal`, so this should be entirely invisible to
users.

## Requires SpacetimeDB PRs
https://github.com/clockworklabs/SpacetimeDB/pull/239 (merged)

## Testsuite
*If you would like to run the your SDK changes in this PR against a
specific SpacetimeDB branch, specify that here. This can be a branch
name or a link to a PR.*

SpacetimeDB branch name: master

## Testing
*Write instructions for a test that you performed for this PR*

- [x] Added a repro for both issues
- [x] Added the repro to CI
- [x] Fixed both issues
2025-03-28 20:15:51 +00:00
james gilles 13dfb03135 Add [ClientVisibilityFilter] to csharp module library (#2481) 2025-03-28 19:03:13 +00:00
Mario Montoya 98395ca530 Print back the # of rows affected (ins, upd, del) with timings (#2462)
Signed-off-by: Mario Montoya <mamcx@elmalabarista.com>
Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
2025-03-28 16:57:23 +00:00
Zeke Foppa 9bd75787c9 CI - Containerize linux x86_64 GNU builds (#2466)
Co-authored-by: Noa <coolreader18@gmail.com>
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-03-28 03:25:32 +00:00
Noa b2412b44f6 Install tls dependencies in standalone dockerfile (#2484)
Co-authored-by: Phoebe Goldman <phoebe@clockworklabs.io>
2025-03-28 03:04:30 +00:00
Zeke Foppa d4267b3904 Bump versions to 1.1.0 (#282)
## Description of Changes
Bumped version numbers to 1.1.0.

## API

 - [ ] This is an API breaking change to the SDK

No, this just updates to the latest version.

## Requires SpacetimeDB PRs
https://github.com/clockworklabs/SpacetimeDB/pull/2518

## Testsuite
SpacetimeDB branch name: bfops/bump-version

## Testing
- [x] Existing CI passes (when pointed at the corresponding SpacetimeDB
branch)

Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-03-28 00:04:47 +00:00
Zeke Foppa c3c0d92fbe Bump versions to 1.1.0 (#2518)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-03-27 23:37:38 +00:00
Mario Montoya ee7970e752 Add .cargo/config.toml to spacetime init Rust project with default target to wasm (#2328) 2025-03-26 14:34:32 +00:00
Jeffrey Dallatezza 765330c863 Remove trailing slashes from isser when looking up oidc configs. (#2499) 2025-03-26 14:19:39 +00:00
Kim Altintop a084222eb0 smoketests: Adjust clear_database test (#2501) 2025-03-26 14:09:15 +00:00
Kim Altintop 5063bd8759 commitlog: Streaming (#2492) 2025-03-26 07:40:23 +00:00
Oliver Davies 3887c479e6 Added "Connecting to Maincloud" section to part-4.md (#275)
* Update part-4.md

added a proper main cloud section

* Update part-4.md

* Update docs/unity/part-4.md

* Apply suggestions from code review

---------

Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
2025-03-24 23:24:56 -04:00
joshua-spacetime 01c391f8a9 Add sql support for :sender parameter (#2483) 2025-03-21 17:53:34 +00:00
Jeffrey Dallatezza a4a2925f12 Use jemalloc in standalone and add stats. (#2470) 2025-03-20 19:00:06 +00:00
Noa 80ad69ca14 Build for musl (#2418) 2025-03-20 04:19:27 +00:00
Kim Altintop c2c19c6b7a smoketests: Test database deletion (#2480) 2025-03-19 16:31:50 +00:00
Noa 16c5f0e312 Allow databases from 1.0.1 to be run on 1.0.0 (#2472) 2025-03-19 16:28:42 +00:00
Kim Altintop 434c28063f commitlog: Fix open flags for read-only offset index (#2468) 2025-03-19 12:24:30 +00:00
Noa 20cda7c38b Close scheduler on module exit (#2477) 2025-03-18 23:21:10 +00:00
John Detter d3aa26e8c3 Version upgrade to 1.0.3 (#162) 2025-03-14 21:11:05 -07:00
John Detter c16bc4f2e9 Add instructions to README (#28)
* Add instructions to README

* Update README.md
2025-03-14 15:18:34 -07:00
rekhoff 89c019c14f Bump package version to 1.0.1 (#272)
Updates package version to 1.0.1

## API

 - [ ] This is an API breaking change to the SDK

## Requires SpacetimeDB PRs
No specific PR needed

## Testsuite

SpacetimeDB branch name: release/v1.0.1

## Testing

- [X] Confirmed Unity sees version as 1.0.1 after change
2025-03-14 16:38:42 -05:00
Jeffrey Dallatezza 76329e98b0 Reverse byte order when converting to/from hex strings (#161) 2025-03-14 16:00:45 -04:00
Zeke Foppa 4d04ab0493 CI - Fix docker jobs failing (#2471)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-03-14 19:14:27 +00:00
Jeffrey Dallatezza a072e8c2e7 Fix some subscription lifecycle issues. (#158)
* Fix some subscription lifecycle issues.

* remove the subscription after an error.
2025-03-14 11:23:00 -07:00
Zeke Foppa 23c2dc083f Update DLLs to 1.0.1 (#269)
## Description of Changes
I don't know if the DLLs need updating, but updated the DLLs just in
case.

## API

Incorporate any chances in SpacetimeDB 1.0.1. There should be no
breaking changes.

## Requires SpacetimeDB PRs
*List any PRs here that are required for this SDK change to work*

## Testsuite
SpacetimeDB branch name: release/v1.0.1

## Testing
None. Will test in release.

---------

Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-03-14 04:18:02 +00:00
rekhoff 4d3f0a0edc Resolved 404 and references to deprecated tutorial repos. (#268)
## Description of Changes
Updated two README docs:
* README.md - Updated links to point to Blackholio repo and tutorial
docs.
* README.dotnet.md - Updated to point to new URL paths for C# SDK
Quickstart and Reference docs.

## API

 - [ ] This is an API breaking change to the SDK

## Requires SpacetimeDB PRs
N/A - Docs only change

## Testsuite
N/A - Docs only change

SpacetimeDB branch name: master

## Testing

- [X] Clicked on each new link and confirm the browser can locate the
new locations.

---------

Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
Co-authored-by: John Detter <no-reply@boppygames.gg>
2025-03-13 18:53:03 -07:00
John Detter 26c1387512 Add install from source instructions to README (#2443)
Co-authored-by: John Detter <no-reply@boppygames.gg>
2025-03-14 00:41:08 +00:00
rekhoff 9523ba3d27 Adds tests of GenericEqualityComparer (#271)
Adds an additional test of the `GenericEqualityComparer` function for
`Integer`, `String`, `Byte Array`, `Identity`, `User` and `TaggedEnum` type
comparisons.

This PR resolves additional checks as reported in by [Issue
230](https://github.com/clockworklabs/com.clockworklabs.spacetimedbsdk/issues/230)
that where not-yet covered elsewhere.

## API

 - [ ] This is an API breaking change to the SDK

## Requires SpacetimeDB PRs
No other PR are needed for this to work.

## Testsuite
SpacetimeDB branch name: master

## Testing
- [X] Locally ran `dotnet test` against the `tests.csproj` project and
it passed all tests
2025-03-13 16:50:18 -07:00
james gilles 91e96ffb3f Bring over Rust module doc fixes from the C# module docs (#2360) 2025-03-13 17:00:12 +00:00
Jeffrey Dallatezza cb80a8edfd Allow a single string to be passed as the audience (#2460) 2025-03-13 16:34:59 +00:00
Jeffrey Dallatezza 872a8d839c When generating for typescript, convert the primary key to camel case. (#2409) 2025-03-12 22:14:12 +00:00
james gilles f5e4663cb5 Implement IEquatable<Self> for all [SpacetimeDB.Type]s (#2396) 2025-03-12 18:59:34 +00:00
Phoebe Goldman e67b5f8565 Fix outdated advice in getrandom warning (#2444) 2025-03-12 15:55:22 +00:00
Mazdak Farrokhzad 2ae19838d3 Fix subs when clients use variying compression (#2434) 2025-03-12 14:39:08 +00:00
Mazdak Farrokhzad be4c2ef72c Adjust the BSATN doc to fit reality better (#216)
adjust BSATN doc to fit reality better
2025-03-12 14:08:47 +01:00
John Detter bbdb0fd6d8 Minor Version Bump to 1.0.1 (#261)
## Description of Changes
*Describe what has been changed, any new features or bug fixes*

I've already pushed this out to nuget here:
<https://www.nuget.org/packages/SpacetimeDB.ClientSDK>

- We want to update our REAME on nuget.org because the README that we
released as part of 1.0.1 was very much out of date.

## API

 - [ ] This is an API breaking change to the SDK

*If the API is breaking, please state below what will break*

## Requires SpacetimeDB PRs
*List any PRs here that are required for this SDK change to work*

NA

## Testsuite
*If you would like to run the your SDK changes in this PR against a
specific SpacetimeDB branch, specify that here. This can be a branch
name or a link to a PR.*

SpacetimeDB branch name: master

## Testing
*Write instructions for a test that you performed for this PR*

- [x] The README is updated.

Co-authored-by: John Detter <no-reply@boppygames.gg>
2025-03-12 04:15:32 +00:00
Zeke Foppa 421256a77f Relax the version constraint on SpacetimeDB nuget package (#270)
## Description of Changes
Relaxed this version number from `1.0.0` to `1.0.*`

## API
No breaking changes.

## Requires SpacetimeDB PRs
None

## Testsuite

SpacetimeDB branch name: master

## Testing
Existing CI should run `dotnet test` and confirm that this is not
broken.

---------

Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-03-11 20:57:10 -07:00
joshua-spacetime be97181b72 update install instructions in readme (#2435) 2025-03-12 02:03:14 +00:00
Tyler Cloutier efd9d86707 Updated tutorial for Blackholio/pull/19 (#163)
Updated tutorial for https://github.com/clockworklabs/Blackholio/pull/19

Co-authored-by: rekhoff <r.ekhoff@clockworklabs.io>
2025-03-11 17:24:55 -07:00
Zeke Foppa 8930e78f97 Bump versions to 1.0.1 (#2431)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-03-11 18:43:48 +00:00