Skip to content

Conversation

@joshua-spacetime
Copy link
Collaborator

@joshua-spacetime joshua-spacetime commented Apr 4, 2025

Description of Changes

Places the [ClientVisibilityFilter] behind the STDB_UNSTABLE experimental feature flag. Will emit a compiler warning unless the following is added to the module file

#pragma warning disable STDB_UNSTABLE // Enable experimental SpacetimeDB features

API and ABI breaking changes

None

Expected complexity level and risk

0

Testing

The build failed until I enabled STDB_UNSTABLE in the sdk-test-cs module.

@joshua-spacetime joshua-spacetime force-pushed the joshua/csharp/rls-feature-flag branch 2 times, most recently from 44148d0 to 6e71a5a Compare April 5, 2025 00:36
@joshua-spacetime joshua-spacetime requested a review from Copilot April 5, 2025 00:51
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

crates/bindings-csharp/Codegen/Module.cs:834

  • [nitpick] Consider renaming 'rlsFeatureFlag' to a more descriptive name such as 'isClientVisibilityEnabled' to improve clarity.
var rlsFeatureFlag = context.CompilationProvider.Select((compilation, _) =>

@joshua-spacetime joshua-spacetime force-pushed the joshua/csharp/rls-feature-flag branch 7 times, most recently from 8f5b44a to 50b100e Compare April 8, 2025 00:24
@joshua-spacetime joshua-spacetime requested a review from jdetter April 8, 2025 00:30
Copy link
Contributor

@kazimuth kazimuth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, this looks like the right way to do this.

@joshua-spacetime joshua-spacetime force-pushed the joshua/csharp/rls-feature-flag branch from 50b100e to c62048b Compare April 8, 2025 19:38
@joshua-spacetime joshua-spacetime added this pull request to the merge queue Apr 8, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 8, 2025
@joshua-spacetime joshua-spacetime added this pull request to the merge queue Apr 8, 2025
Merged via the queue into master with commit aac7894 Apr 8, 2025
14 checks passed
@joshua-spacetime joshua-spacetime deleted the joshua/csharp/rls-feature-flag branch April 8, 2025 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RLS: Feature gate [ClientVisibilityFilter] attribute in C# module library

4 participants